Lines Matching defs:value
81 // TODO(cira): Use fallback value if value is not found to make
91 // Overwrite existing, or insert new key-value to the locale string.
105 std::string value =
107 if (status == U_ILLEGAL_ARGUMENT_ERROR || value == "") {
110 if (value == "yes") {
111 value = "true";
113 if (value == "true" && strcmp(key, "kf") == 0) {
116 return isolate->factory()->NewStringFromAsciiChecked(value.c_str());
146 bool IsUnicodeLanguageSubtag(const std::string& value) {
148 return IsAlpha(value, 2, 3) || IsAlpha(value, 5, 8);
151 bool IsUnicodeScriptSubtag(const std::string& value) {
153 return IsAlpha(value, 4, 4);
156 bool IsUnicodeRegionSubtag(const std::string& value) {
158 return IsAlpha(value, 2, 2) || IsDigit(value, 3, 3);
161 bool IsDigitAlphanum3(const std::string& value) {
162 return value.length() == 4 && base::IsInRange(value[0], '0', '9') &&
163 IsAlphanum(value.substr(1), 3, 3);
166 bool IsUnicodeVariantSubtag(const std::string& value) {
168 return IsAlphanum(value, 5, 8) || IsDigitAlphanum3(value);
171 bool IsExtensionSingleton(const std::string& value) {
172 return IsAlphanum(value, 1, 1);
184 std::string value = in;
186 std::size_t found_dash = value.find("-");
188 return IsAlphanum(value, 3, 8);
190 if (!IsAlphanum(value.substr(0, found_dash), 3, 8)) return false;
191 value = value.substr(found_dash + 1);
195 bool JSLocale::Is3Alpha(const std::string& value) {
196 return IsAlpha(value, 3, 3);
201 bool JSLocale::StartsWithUnicodeLanguageId(const std::string& value) {
207 std::istringstream token_stream(value);
628 // Let loc be the this value.
668 // Let loc be the this value.
708 // Let loc be the this value.
727 // Let fd be the weekday value indicating which day of the week is considered