MCPcopy Create free account
hub / github.com/OSGeo/gdal / CPLStrlenUTF8Ex

Function CPLStrlenUTF8Ex

port/cpl_recode.cpp:1202–1213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1200 */
1201
1202size_t CPLStrlenUTF8Ex(const char *pszUTF8Str)
1203{
1204 size_t nCharacterCount = 0;
1205 for (size_t i = 0; pszUTF8Str[i] != '\0'; ++i)
1206 {
1207 if ((pszUTF8Str[i] & 0xc0) != 0x80)
1208 {
1209 ++nCharacterCount;
1210 }
1211 }
1212 return nCharacterCount;
1213}
1214
1215/************************************************************************/
1216/* CPLCanRecode() */

Callers 11

ValidateMethod · 0.85
FeatureBindParametersMethod · 0.85
OGRPGEscapeStringFunction · 0.85
GetFieldAsNStringMethod · 0.85
OGRPGCommonLaunderNameFunction · 0.85
ICreateLayerMethod · 0.85
OGRPGDumpEscapeStringFunction · 0.85
TEST_FFunction · 0.85
RunStepMethod · 0.85

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.68