Lines Matching refs:script
58 uint32_t LocaleUtil::EncodeScript(const char *script)
60 if (IsStrEmpty(script)) {
63 // 0, 1, 2, 3 is index of characters in script, 24, 16, 8 is offset.
64 return ((uint8_t)script[0] << 24) | ((uint8_t)script[1] << 16) | ((uint8_t)script[2] << 8) | (uint8_t)script[3];
78 uint64_t LocaleUtil::EncodeLocale(const char *language, const char *script, const char *region)
81 uint32_t scriptData = EncodeScript(script);
100 outValue[0] = (encodeScript & 0xFF000000) >> 24; // 0 is index, 24 is first script character offset
101 outValue[1] = (encodeScript & 0x00FF0000) >> 16; // 1 is index, 16 is second script character offset
102 outValue[2] = (encodeScript & 0x0000FF00) >> 8; // 2 is index, 8 is third script character offset