Custom strlen() which works on different character types.
- Template Parameters
-
| Ch | Character type (e.g. char, wchar_t, short) |
- Parameters
-
| s | Null-terminated input string. |
- Returns
- Number of characters in the string.
- Note
- This has the same semantics as strlen(), the return value is not number of Unicode codepoints.
Referenced by rapidjson::GenericValue< Encoding, Allocator >::AddMember(), rapidjson::GenericValue< Encoding, Allocator >::FindMember(), rapidjson::GenericValue< Encoding, Allocator >::GenericValue(), rapidjson::GenericValue< Encoding, Allocator >::SetString(), rapidjson::Writer< Stream, Encoding, Allocator >::String(), and rapidjson::PrettyWriter< Stream, Encoding, Allocator >::String().