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

Function CPLIsUTF8

port/cpl_recode_stub.cpp:500–505  ·  view source on GitHub ↗

* Test if a string is encoded as UTF-8. * * @param pabyData input string to test * @param nLen length of the input string, or -1 if the function must compute * the string length. In which case it must be null terminated. * @return TRUE if the string is encoded as UTF-8. FALSE otherwise * */

Source from the content-addressed store, hash-verified

498 *
499 */
500int CPLIsUTF8(const char *pabyData, int nLen)
501{
502 if (nLen < 0)
503 nLen = static_cast<int>(strlen(pabyData));
504 return utf8test(pabyData, static_cast<unsigned>(nLen)) != 0;
505}
506
507/************************************************************************/
508/* ==================================================================== */

Callers 15

ValidateMethod · 0.85
FeatureBindParametersMethod · 0.85
ReadVECMethod · 0.85
OGRGPX_GetUTF8StringFunction · 0.85
CreateFeatureViaCopyMethod · 0.85
writeHeaderMethod · 0.85
ICreateFeatureMethod · 0.85
OGRMVTDriverIdentifyFunction · 0.85
LaunderNameMethod · 0.85

Calls 1

utf8testFunction · 0.85

Tested by 1

TestOGRLayerUTF8Function · 0.68