Home
last modified time | relevance | path

Searched refs:scriptCode (Results 1 – 25 of 97) sorted by relevance

1234

/third_party/skia/third_party/externals/icu/source/common/
Dusc_impl.cpp38 UScriptCode scriptCode; member
48 UScriptCode scriptCode; member
78 static void push(UScriptRun *scriptRun, int32_t pairIndex, UScriptCode scriptCode) in push() argument
85 scriptRun->parenStack[scriptRun->parenSP].scriptCode = scriptCode; in push()
109 static void fixup(UScriptRun *scriptRun, UScriptCode scriptCode) in fixup() argument
115 scriptRun->parenStack[fixupSP].scriptCode = scriptCode; in fixup()
232 scriptRun->scriptCode = USCRIPT_INVALID_CODE; in uscript_resetRun()
268 scriptRun->scriptCode = USCRIPT_COMMON; in uscript_nextRun()
306 push(scriptRun, pairIndex, scriptRun->scriptCode); in uscript_nextRun()
315 sc = TOP(scriptRun).scriptCode; in uscript_nextRun()
[all …]
Duscript.cpp86 UScriptCode scriptCode = (UScriptCode)u_getPropertyValueEnum(UCHAR_SCRIPT, script); in getCodesFromLocale() local
87 if(scriptCode != USCRIPT_INVALID_CODE) { in getCodesFromLocale()
88 if(scriptCode == USCRIPT_SIMPLIFIED_HAN || scriptCode == USCRIPT_TRADITIONAL_HAN) { in getCodesFromLocale()
89 scriptCode = USCRIPT_HAN; in getCodesFromLocale()
91 return setOneCode(scriptCode, scripts, capacity, err); in getCodesFromLocale()
/third_party/icu/icu4c/source/common/
Dusc_impl.cpp38 UScriptCode scriptCode; member
48 UScriptCode scriptCode; member
78 static void push(UScriptRun *scriptRun, int32_t pairIndex, UScriptCode scriptCode) in push() argument
85 scriptRun->parenStack[scriptRun->parenSP].scriptCode = scriptCode; in push()
109 static void fixup(UScriptRun *scriptRun, UScriptCode scriptCode) in fixup() argument
115 scriptRun->parenStack[fixupSP].scriptCode = scriptCode; in fixup()
232 scriptRun->scriptCode = USCRIPT_INVALID_CODE; in uscript_resetRun()
268 scriptRun->scriptCode = USCRIPT_COMMON; in uscript_nextRun()
306 push(scriptRun, pairIndex, scriptRun->scriptCode); in uscript_nextRun()
315 sc = TOP(scriptRun).scriptCode; in uscript_nextRun()
[all …]
Duscript.cpp86 UScriptCode scriptCode = (UScriptCode)u_getPropertyValueEnum(UCHAR_SCRIPT, script); in getCodesFromLocale() local
87 if(scriptCode != USCRIPT_INVALID_CODE) { in getCodesFromLocale()
88 if(scriptCode == USCRIPT_SIMPLIFIED_HAN || scriptCode == USCRIPT_TRADITIONAL_HAN) { in getCodesFromLocale()
89 scriptCode = USCRIPT_HAN; in getCodesFromLocale()
91 return setOneCode(scriptCode, scripts, capacity, err); in getCodesFromLocale()
/third_party/flutter/skia/third_party/externals/icu/source/common/
Dusc_impl.cpp38 UScriptCode scriptCode; member
48 UScriptCode scriptCode; member
78 static void push(UScriptRun *scriptRun, int32_t pairIndex, UScriptCode scriptCode) in push() argument
85 scriptRun->parenStack[scriptRun->parenSP].scriptCode = scriptCode; in push()
109 static void fixup(UScriptRun *scriptRun, UScriptCode scriptCode) in fixup() argument
115 scriptRun->parenStack[fixupSP].scriptCode = scriptCode; in fixup()
232 scriptRun->scriptCode = USCRIPT_INVALID_CODE; in uscript_resetRun()
268 scriptRun->scriptCode = USCRIPT_COMMON; in uscript_nextRun()
306 push(scriptRun, pairIndex, scriptRun->scriptCode); in uscript_nextRun()
315 sc = TOP(scriptRun).scriptCode; in uscript_nextRun()
[all …]
Duscript.cpp83 UScriptCode scriptCode = (UScriptCode)u_getPropertyValueEnum(UCHAR_SCRIPT, script); in getCodesFromLocale() local
84 if(scriptCode != USCRIPT_INVALID_CODE) { in getCodesFromLocale()
85 if(scriptCode == USCRIPT_SIMPLIFIED_HAN || scriptCode == USCRIPT_TRADITIONAL_HAN) { in getCodesFromLocale()
86 scriptCode = USCRIPT_HAN; in getCodesFromLocale()
88 return setOneCode(scriptCode, scripts, capacity, err); in getCodesFromLocale()
/third_party/node/deps/icu-small/source/common/
Dusc_impl.cpp38 UScriptCode scriptCode; member
48 UScriptCode scriptCode; member
78 static void push(UScriptRun *scriptRun, int32_t pairIndex, UScriptCode scriptCode) in push() argument
85 scriptRun->parenStack[scriptRun->parenSP].scriptCode = scriptCode; in push()
109 static void fixup(UScriptRun *scriptRun, UScriptCode scriptCode) in fixup() argument
115 scriptRun->parenStack[fixupSP].scriptCode = scriptCode; in fixup()
232 scriptRun->scriptCode = USCRIPT_INVALID_CODE; in uscript_resetRun()
268 scriptRun->scriptCode = USCRIPT_COMMON; in uscript_nextRun()
306 push(scriptRun, pairIndex, scriptRun->scriptCode); in uscript_nextRun()
315 sc = TOP(scriptRun).scriptCode; in uscript_nextRun()
[all …]
Duscript.cpp86 UScriptCode scriptCode = (UScriptCode)u_getPropertyValueEnum(UCHAR_SCRIPT, script); in getCodesFromLocale() local
87 if(scriptCode != USCRIPT_INVALID_CODE) { in getCodesFromLocale()
88 if(scriptCode == USCRIPT_SIMPLIFIED_HAN || scriptCode == USCRIPT_TRADITIONAL_HAN) { in getCodesFromLocale()
89 scriptCode = USCRIPT_HAN; in getCodesFromLocale()
91 return setOneCode(scriptCode, scripts, capacity, err); in getCodesFromLocale()
/third_party/flutter/flutter/packages/flutter_localizations/test/material/
Dtranslations_test.dart159 … Locale locale = const Locale.fromSubtags(languageCode: 'zh', scriptCode: null, countryCode: null);
169 locale = const Locale.fromSubtags(languageCode: 'zh', scriptCode: null, countryCode: 'HK');
174 locale = const Locale.fromSubtags(languageCode: 'zh', scriptCode: null, countryCode: 'TW');
179 locale = const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans', countryCode: null);
184 locale = const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant', countryCode: null);
189 locale = const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans', countryCode: 'US');
194 locale = const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans', countryCode: 'CN');
199 locale = const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans', countryCode: 'TW');
204 locale = const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant', countryCode: 'CN');
209 locale = const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant', countryCode: 'US');
[all …]
/third_party/icu/icu4c/source/extra/scrptrun/
Dscrptrun.cpp125 scriptCode = USCRIPT_COMMON; in next()
157 parenStack[parenSP].scriptCode = scriptCode; in next()
170 sc = parenStack[parenSP].scriptCode; in next()
175 if (sameScript(scriptCode, sc)) { in next()
176 if (scriptCode <= USCRIPT_INHERITED && sc > USCRIPT_INHERITED) { in next()
177 scriptCode = sc; in next()
182 parenStack[++startSP].scriptCode = scriptCode; in next()
Dscrptrun.h29 UScriptCode scriptCode; member
35 UScriptCode scriptCode; member
84 UScriptCode scriptCode; variable
131 return scriptCode; in getScriptCode()
138 scriptCode = USCRIPT_INVALID_CODE; in reset()
/third_party/flutter/skia/third_party/externals/icu/source/extra/scrptrun/
Dscrptrun.cpp123 scriptCode = USCRIPT_COMMON; in next()
155 parenStack[parenSP].scriptCode = scriptCode; in next()
168 sc = parenStack[parenSP].scriptCode; in next()
173 if (sameScript(scriptCode, sc)) { in next()
174 if (scriptCode <= USCRIPT_INHERITED && sc > USCRIPT_INHERITED) { in next()
175 scriptCode = sc; in next()
180 parenStack[++startSP].scriptCode = scriptCode; in next()
Dscrptrun.h27 UScriptCode scriptCode; member
33 UScriptCode scriptCode; member
82 UScriptCode scriptCode; variable
129 return scriptCode; in getScriptCode()
136 scriptCode = USCRIPT_INVALID_CODE; in reset()
/third_party/skia/third_party/externals/icu/source/extra/scrptrun/
Dscrptrun.cpp125 scriptCode = USCRIPT_COMMON; in next()
157 parenStack[parenSP].scriptCode = scriptCode; in next()
170 sc = parenStack[parenSP].scriptCode; in next()
175 if (sameScript(scriptCode, sc)) { in next()
176 if (scriptCode <= USCRIPT_INHERITED && sc > USCRIPT_INHERITED) { in next()
177 scriptCode = sc; in next()
182 parenStack[++startSP].scriptCode = scriptCode; in next()
Dscrptrun.h29 UScriptCode scriptCode; member
35 UScriptCode scriptCode; member
84 UScriptCode scriptCode; variable
131 return scriptCode; in getScriptCode()
138 scriptCode = USCRIPT_INVALID_CODE; in reset()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/lang/
DUScriptRun.java155 scriptCode = UScript.INVALID_CODE; in reset()
327 return scriptCode; in getScriptCode()
347 scriptCode = UScript.COMMON; in next()
368 push(pairIndex, scriptCode); in next()
377 sc = top().scriptCode; in next()
382 if (sameScript(scriptCode, sc)) { in next()
383 if (scriptCode <= UScript.INHERITED && sc > UScript.INHERITED) { in next()
384 scriptCode = sc; in next()
386 fixup(scriptCode); in next()
427 int scriptCode; field in UScriptRun.ParenStackEntry
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/lang/
DUScriptRun.java157 scriptCode = UScript.INVALID_CODE; in reset()
329 return scriptCode; in getScriptCode()
349 scriptCode = UScript.COMMON; in next()
370 push(pairIndex, scriptCode); in next()
379 sc = top().scriptCode; in next()
384 if (sameScript(scriptCode, sc)) { in next()
385 if (scriptCode <= UScript.INHERITED && sc > UScript.INHERITED) { in next()
386 scriptCode = sc; in next()
388 fixup(scriptCode); in next()
429 int scriptCode; field in UScriptRun.ParenStackEntry
[all …]
/third_party/flutter/engine/flutter/testing/dart/
Dlocale_test.dart27 expect(const Locale.fromSubtags().scriptCode, null);
32 expect(const Locale.fromSubtags(scriptCode: 'Latn').toLanguageTag(), 'und-Latn');
33 expect(const Locale.fromSubtags(scriptCode: 'Latn').toString(), 'und_Latn');
34 expect(const Locale.fromSubtags(scriptCode: 'Latn').scriptCode, 'Latn');
42 expect(const Locale.fromSubtags(languageCode: 'es', countryCode: '419').scriptCode, null);
45 …expect(const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans', countryCode: 'CN').toLangu…
46 …expect(const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans', countryCode: 'CN').toStrin…
51 isNot(const Locale.fromSubtags(languageCode: 'en', scriptCode: 'Latn')));
53 isNot(const Locale.fromSubtags(languageCode: 'en', scriptCode: 'Latn').hashCode));
/third_party/flutter/engine/flutter/lib/web_ui/test/
Dlocale_test.dart26 expect(const Locale.fromSubtags().scriptCode, null);
31 expect(const Locale.fromSubtags(scriptCode: 'Latn').toString(), 'und_Latn');
32 expect(const Locale.fromSubtags(scriptCode: 'Latn').scriptCode, 'Latn');
51 languageCode: 'zh', scriptCode: 'Hans', countryCode: 'CN')
60 const Locale.fromSubtags(languageCode: 'en', scriptCode: 'Latn')));
63 isNot(const Locale.fromSubtags(languageCode: 'en', scriptCode: 'Latn')
/third_party/flutter/flutter/dev/tools/localization/
Dlocalizations_utils.dart19 this.scriptCode,
31 /// When `deriveScriptCode` is true, if [scriptCode] was unspecified, it will
37 String scriptCode;
42 scriptCode = codes[1].length >= 4 ? codes[1] : null;
45 scriptCode = codes[1].length > codes[2].length ? codes[1] : codes[2];
50 assert(scriptCode == null || scriptCode.isNotEmpty);
58 if (deriveScriptCode && scriptCode == null) {
62 scriptCode = 'Hans';
67 scriptCode = 'Hans';
72 scriptCode = 'Hant';
[all …]
/third_party/icu/icu4c/source/samples/layout/
DFontMap.cpp57 UScriptCode scriptCode; in FontMap() local
77 le_int32 fillCount = uscript_getCode(scriptName, &scriptCode, 1, &scriptStatus); in FontMap()
86 script = (le_int32) scriptCode; in FontMap()
199 const LEFontInstance *FontMap::getScriptFont(le_int32 scriptCode, LEErrorCode &status) in getScriptFont() argument
205 if (scriptCode <= -1 || scriptCode >= scriptCodeCount) { in getScriptFont()
211 le_int32 fontIndex = fFontIndices[scriptCode]; in getScriptFont()
214 … sprintf(errorMessage, "No font was set for script %s", uscript_getName((UScriptCode) scriptCode)); in getScriptFont()
/third_party/flutter/skia/third_party/externals/icu/source/samples/layout/
DFontMap.cpp57 UScriptCode scriptCode; in FontMap() local
77 le_int32 fillCount = uscript_getCode(scriptName, &scriptCode, 1, &scriptStatus); in FontMap()
86 script = (le_int32) scriptCode; in FontMap()
199 const LEFontInstance *FontMap::getScriptFont(le_int32 scriptCode, LEErrorCode &status) in getScriptFont() argument
205 if (scriptCode <= -1 || scriptCode >= scriptCodeCount) { in getScriptFont()
211 le_int32 fontIndex = fFontIndices[scriptCode]; in getScriptFont()
214 … sprintf(errorMessage, "No font was set for script %s", uscript_getName((UScriptCode) scriptCode)); in getScriptFont()
/third_party/skia/third_party/externals/icu/source/samples/layout/
DFontMap.cpp57 UScriptCode scriptCode; in FontMap() local
77 le_int32 fillCount = uscript_getCode(scriptName, &scriptCode, 1, &scriptStatus); in FontMap()
86 script = (le_int32) scriptCode; in FontMap()
199 const LEFontInstance *FontMap::getScriptFont(le_int32 scriptCode, LEErrorCode &status) in getScriptFont() argument
205 if (scriptCode <= -1 || scriptCode >= scriptCodeCount) { in getScriptFont()
211 le_int32 fontIndex = fFontIndices[scriptCode]; in getScriptFont()
214 … sprintf(errorMessage, "No font was set for script %s", uscript_getName((UScriptCode) scriptCode)); in getScriptFont()
/third_party/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/util/
DLocaleNameProviderICU.java43 public String getDisplayScript(String scriptCode, Locale locale) { in getDisplayScript() argument
44 scriptCode = AsciiUtil.toTitleString(scriptCode); in getDisplayScript()
46 .scriptDisplayName(scriptCode); in getDisplayScript()
47 if (disp == null || disp.length() == 0 || disp.equals(scriptCode)) { in getDisplayScript()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/fontinfo/
DFontInfo.java374 int scriptCode = UScript.getScript(charId); in listScriptCoverage() local
376 if (coveredScripts.containsKey(scriptCode)) { in listScriptCoverage()
377 scriptCount += coveredScripts.get(scriptCode); in listScriptCoverage()
379 coveredScripts.put(scriptCode, scriptCount); in listScriptCoverage()
387 for (Integer scriptCode : sortedScripts) { in listScriptCoverage()
389 String scriptName = UScript.getName(scriptCode); in listScriptCoverage()
393 unknown += coveredScripts.get(scriptCode); in listScriptCoverage()
398 String.format("%d / %d", coveredScripts.get(scriptCode), scriptSet.size()) })); in listScriptCoverage()
427 int scriptCode = UScript.getScript(charId); in listCharsNeededToCoverScript() local
428 if (scriptCode == UScript.UNKNOWN) { in listCharsNeededToCoverScript()
[all …]

1234