Lines Matching defs:style

82 JSHandle<JSTaggedValue> OptionToEcmaString(JSThread *thread, StyleOption style)
86 switch (style) {
326 // 3. Let style be ? GetOption(options, "style", "string", « "decimal", "percent", "currency", "unit" », "decimal").
328 auto style = JSLocale::GetOptionOfString<StyleOption>(
334 // 4. Set intlObj.[[Style]] to style.
335 numberFormat->SetStyle(style);
356 // 7. If style is "currency" and currency is undefined, throw a TypeError exception.
357 if (style == StyleOption::CURRENCY) {
358 THROW_TYPE_ERROR_AND_RETURN(thread, "style is currency but currency is undefined", fractionDigitsOption);
402 // 15.12. if style is "unit" and unit is undefined, throw a TypeError exception.
403 if (style == StyleOption::UNIT) {
404 THROW_TYPE_ERROR_AND_RETURN(thread, "style is unit but unit is undefined", fractionDigitsOption);
417 // 14. If style is "currency", then
424 if (style == StyleOption::CURRENCY) {
458 // 15. If style is "unit", then
461 if (style == StyleOption::UNIT) {
471 // 17. If style is "currency", then
475 if (style == StyleOption::CURRENCY) {
482 // b. If style is "percent", then
487 if (style == StyleOption::PERCENT) {
619 // 16. Let style be numberFormat.[[Style]].
620 StyleOption style = numberFormat->GetStyle();
621 if (style == StyleOption::PERCENT) {
892 // Special case in ICU when style is unit and unit is percent
1000 // [[Style]] "style"
1032 StyleOption style = numberFormat->GetStyle();
1034 JSHandle<JSTaggedValue> styleString = OptionToEcmaString(thread, style);
1040 // If style is not currency the currency should be undefined
1041 if (style == StyleOption::CURRENCY) {
1064 if (style == StyleOption::UNIT) {