MCPcopy Create free account
hub / github.com/aboSamoor/pycld2 / GetUTF8LetterScriptNum

Function GetUTF8LetterScriptNum

cld2/internal/getonescriptspan.cc:1085–1090  ·  view source on GitHub ↗

Gets lscript number for letters; always returns 0 (common script) for non-letters

Source from the content-addressed store, hash-verified

1083// Gets lscript number for letters; always returns
1084// 0 (common script) for non-letters
1085int GetUTF8LetterScriptNum(const char* src) {
1086 int srclen = UTF8OneCharLen(src);
1087 const uint8* usrc = reinterpret_cast<const uint8*>(src);
1088 return UTF8GenericPropertyTwoByte(&utf8prop_lettermarkscriptnum_obj,
1089 &usrc, &srclen);
1090}
1091
1092} // namespace CLD2
1093

Callers 2

SkipToFrontOfSpanMethod · 0.85
GetOneScriptSpanMethod · 0.85

Calls 2

UTF8OneCharLenFunction · 0.85

Tested by

no test coverage detected