inline UInt32 countTypedElements( Text *, T *, DataPtr &data) { // Count number of internally occurring separators in the data, and then add 1 UInt32 count = 0; for (UInt32 i=1; i<data.length()-1; i++) { if (data.get()[i] == Byte8(chSeparator)) { count++; } } return count+1; }
UInt32 EncodingText_getCountImpl(DataPtr & data, T *) { // Return 1 + number of separator characters. UInt32 count = 0; for (UInt32 i=1; i<data.length()-1; i++) { if (data.get()[i] == Byte8(chSeparator)) { count++; } } return count+1; }