Lines Matching refs:code
2 // Use of this source code is governed by a BSD-style license that can be
83 const char* code) const = 0;
128 const char* code) const override {
130 // 1.a If code does not match the unicode_language_id production, throw a
133 // 1.b If IsStructurallyValidLanguageTag(code) is false, throw a RangeError
136 icu::Locale(icu::Locale::forLanguageTag(code, status).getBaseName());
137 // 1.c Set code to CanonicalizeUnicodeLocaleId(code).
165 const char* code) const override {
166 std::string code_str(code);
190 const char* code) const override {
191 std::string code_str(code);
218 const char* code) const override {
219 std::string code_str(code);
249 const char* code) const override {
250 std::string code_str(code);
256 return KeyValueDisplayNames::of(isolate, code);
270 const char* code) const override {
271 std::string code_str(code);
277 return KeyValueDisplayNames::of(isolate, strcmp(code, "gregory") == 0
279 : strcmp(code, "ethioaa") == 0
281 : code);
297 UDateTimePatternField StringToUDateTimePatternField(const char* code) {
298 switch (code[0]) {
300 if (strcmp(code, "day") == 0) return UDATPG_DAY_FIELD;
301 if (strcmp(code, "dayPeriod") == 0) return UDATPG_DAYPERIOD_FIELD;
304 if (strcmp(code, "era") == 0) return UDATPG_ERA_FIELD;
307 if (strcmp(code, "hour") == 0) return UDATPG_HOUR_FIELD;
310 if (strcmp(code, "minute") == 0) return UDATPG_MINUTE_FIELD;
311 if (strcmp(code, "month") == 0) return UDATPG_MONTH_FIELD;
314 if (strcmp(code, "quarter") == 0) return UDATPG_QUARTER_FIELD;
317 if (strcmp(code, "second") == 0) return UDATPG_SECOND_FIELD;
320 if (strcmp(code, "timeZoneName") == 0) return UDATPG_ZONE_FIELD;
323 if (strcmp(code, "weekOfYear") == 0) return UDATPG_WEEK_OF_YEAR_FIELD;
324 if (strcmp(code, "weekday") == 0) return UDATPG_WEEKDAY_FIELD;
327 if (strcmp(code, "year") == 0) return UDATPG_YEAR_FIELD;
353 const char* code) const override {
354 UDateTimePatternField field = StringToUDateTimePatternField(code);
475 // « "code", "none" », "code").
477 isolate, options, "fallback", service, {"code", "none"},
600 Handle<String> code;
601 ASSIGN_RETURN_ON_EXCEPTION(isolate, code, Object::ToString(isolate, code_obj),
605 internal->of(isolate, code->ToCString().get());