| 129 | |
| 130 | |
| 131 | ULONG FixedWidthCharSet::length(ULONG srcLen, const UCHAR* src, bool countTrailingSpaces) const |
| 132 | { |
| 133 | if (!countTrailingSpaces) |
| 134 | srcLen = removeTrailingSpaces(srcLen, src); |
| 135 | |
| 136 | if (getStruct()->charset_fn_length) |
| 137 | return getStruct()->charset_fn_length(getStruct(), srcLen, src); |
| 138 | |
| 139 | return srcLen / minBytesPerChar(); |
| 140 | } |
| 141 | |
| 142 | |
| 143 | ULONG FixedWidthCharSet::substring(const ULONG srcLen, const UCHAR* src, const ULONG dstLen, UCHAR* dst, |