Home
last modified time | relevance | path

Searched refs:Style (Results 1 - 25 of 178) sorted by relevance

12345678

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
H A DPath.h28 enum class Style { windows, posix, native }; class
58 Style S = Style::native; ///< The path style to use.
61 friend const_iterator begin(StringRef path, Style style);
84 Style S = Style::native; ///< The path style to use.
86 friend reverse_iterator rbegin(StringRef path, Style style);
101 const_iterator begin(StringRef path, Style style = Style::native);
111 reverse_iterator rbegin(StringRef path, Style styl
[all...]
H A DFormatProviders.h77 static bool consumeHexStyle(StringRef &Str, HexPrintStyle &Style) {
82 Style = HexPrintStyle::Lower;
84 Style = HexPrintStyle::Upper;
86 Style = HexPrintStyle::PrefixLower;
88 Style = HexPrintStyle::PrefixUpper;
92 static size_t consumeNumHexDigits(StringRef &Str, HexPrintStyle Style,
95 if (isPrefixedHexStyle(Style))
131 static void format(const T &V, llvm::raw_ostream &Stream, StringRef Style) {
134 if (consumeHexStyle(Style, HS)) {
135 Digits = consumeNumHexDigits(Style, H
[all...]
H A DChrono.h72 StringRef Style);
124 static std::pair<InternalRep, StringRef> consumeUnit(StringRef &Style, in consumeUnit()
127 if (Style.consume_front("ns")) in consumeUnit()
129 if (Style.consume_front("us")) in consumeUnit()
131 if (Style.consume_front("ms")) in consumeUnit()
133 if (Style.consume_front("s")) in consumeUnit()
135 if (Style.consume_front("m")) in consumeUnit()
137 if (Style.consume_front("h")) in consumeUnit()
142 static bool consumeShowUnit(StringRef &Style) { in consumeShowUnit()
143 if (Style in consumeShowUnit()
[all...]
H A DNativeFormatting.h25 size_t getDefaultPrecision(FloatStyle Style);
30 IntegerStyle Style);
31 void write_integer(raw_ostream &S, int N, size_t MinDigits, IntegerStyle Style);
33 IntegerStyle Style);
35 IntegerStyle Style);
37 IntegerStyle Style);
39 IntegerStyle Style);
41 void write_hex(raw_ostream &S, uint64_t N, HexPrintStyle Style,
43 void write_double(raw_ostream &S, double D, FloatStyle Style,
/third_party/skia/third_party/externals/tint/src/diagnostic/
H A Dprinter_test.cc41 printer->write("Default", Style{Color::kDefault, false}); in TEST_F()
42 printer->write("Black", Style{Color::kBlack, false}); in TEST_F()
43 printer->write("Red", Style{Color::kRed, false}); in TEST_F()
44 printer->write("Green", Style{Color::kGreen, false}); in TEST_F()
45 printer->write("Yellow", Style{Color::kYellow, false}); in TEST_F()
46 printer->write("Blue", Style{Color::kBlue, false}); in TEST_F()
47 printer->write("Magenta", Style{Color::kMagenta, false}); in TEST_F()
48 printer->write("Cyan", Style{Color::kCyan, false}); in TEST_F()
49 printer->write("White", Style{Color::kWhite, false}); in TEST_F()
55 printer->write("Default", Style{Colo in TEST_F()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
H A DFormatProviders.h78 static bool consumeHexStyle(StringRef &Str, HexPrintStyle &Style) {
83 Style = HexPrintStyle::Lower;
85 Style = HexPrintStyle::Upper;
87 Style = HexPrintStyle::PrefixLower;
89 Style = HexPrintStyle::PrefixUpper;
93 static size_t consumeNumHexDigits(StringRef &Str, HexPrintStyle Style,
96 if (isPrefixedHexStyle(Style))
132 static void format(const T &V, llvm::raw_ostream &Stream, StringRef Style) {
135 if (consumeHexStyle(Style, HS)) {
136 Digits = consumeNumHexDigits(Style, H
[all...]
H A DNativeFormatting.h26 size_t getDefaultPrecision(FloatStyle Style);
31 IntegerStyle Style);
32 void write_integer(raw_ostream &S, int N, size_t MinDigits, IntegerStyle Style);
34 IntegerStyle Style);
36 IntegerStyle Style);
38 IntegerStyle Style);
40 IntegerStyle Style);
42 void write_hex(raw_ostream &S, uint64_t N, HexPrintStyle Style,
44 void write_double(raw_ostream &S, double D, FloatStyle Style,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
H A DNativeFormatting.cpp53 IntegerStyle Style, bool IsNegative) { in write_unsigned_impl()
65 if (Len < MinDigits && Style != IntegerStyle::Number) { in write_unsigned_impl()
70 if (Style == IntegerStyle::Number) { in write_unsigned_impl()
79 IntegerStyle Style, bool IsNegative = false) { in write_unsigned()
82 write_unsigned_impl(S, static_cast<uint32_t>(N), MinDigits, Style, in write_unsigned()
85 write_unsigned_impl(S, N, MinDigits, Style, IsNegative); in write_unsigned()
90 IntegerStyle Style) { in write_signed()
96 write_unsigned(S, static_cast<UnsignedT>(N), MinDigits, Style); in write_signed()
101 write_unsigned(S, UN, MinDigits, Style, true); in write_signed()
105 IntegerStyle Style) { in write_integer()
52 write_unsigned_impl(raw_ostream &S, T N, size_t MinDigits, IntegerStyle Style, bool IsNegative) write_unsigned_impl() argument
78 write_unsigned(raw_ostream &S, T N, size_t MinDigits, IntegerStyle Style, bool IsNegative = false) write_unsigned() argument
89 write_signed(raw_ostream &S, T N, size_t MinDigits, IntegerStyle Style) write_signed() argument
104 write_integer(raw_ostream &S, unsigned int N, size_t MinDigits, IntegerStyle Style) write_integer() argument
109 write_integer(raw_ostream &S, int N, size_t MinDigits, IntegerStyle Style) write_integer() argument
114 write_integer(raw_ostream &S, unsigned long N, size_t MinDigits, IntegerStyle Style) write_integer() argument
119 write_integer(raw_ostream &S, long N, size_t MinDigits, IntegerStyle Style) write_integer() argument
124 write_integer(raw_ostream &S, unsigned long long N, size_t MinDigits, IntegerStyle Style) write_integer() argument
129 write_integer(raw_ostream &S, long long N, size_t MinDigits, IntegerStyle Style) write_integer() argument
134 write_hex(raw_ostream &S, uint64_t N, HexPrintStyle Style, Optional<size_t> Width) write_hex() argument
164 write_double(raw_ostream &S, double N, FloatStyle Style, Optional<size_t> Precision) write_double() argument
257 getDefaultPrecision(FloatStyle Style) getDefaultPrecision() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A DNativeFormatting.cpp52 IntegerStyle Style, bool IsNegative) { in write_unsigned_impl()
64 if (Len < MinDigits && Style != IntegerStyle::Number) { in write_unsigned_impl()
69 if (Style == IntegerStyle::Number) { in write_unsigned_impl()
78 IntegerStyle Style, bool IsNegative = false) { in write_unsigned()
81 write_unsigned_impl(S, static_cast<uint32_t>(N), MinDigits, Style, in write_unsigned()
84 write_unsigned_impl(S, N, MinDigits, Style, IsNegative); in write_unsigned()
89 IntegerStyle Style) { in write_signed()
95 write_unsigned(S, static_cast<UnsignedT>(N), MinDigits, Style); in write_signed()
100 write_unsigned(S, UN, MinDigits, Style, true); in write_signed()
104 IntegerStyle Style) { in write_integer()
51 write_unsigned_impl(raw_ostream &S, T N, size_t MinDigits, IntegerStyle Style, bool IsNegative) write_unsigned_impl() argument
77 write_unsigned(raw_ostream &S, T N, size_t MinDigits, IntegerStyle Style, bool IsNegative = false) write_unsigned() argument
88 write_signed(raw_ostream &S, T N, size_t MinDigits, IntegerStyle Style) write_signed() argument
103 write_integer(raw_ostream &S, unsigned int N, size_t MinDigits, IntegerStyle Style) write_integer() argument
108 write_integer(raw_ostream &S, int N, size_t MinDigits, IntegerStyle Style) write_integer() argument
113 write_integer(raw_ostream &S, unsigned long N, size_t MinDigits, IntegerStyle Style) write_integer() argument
118 write_integer(raw_ostream &S, long N, size_t MinDigits, IntegerStyle Style) write_integer() argument
123 write_integer(raw_ostream &S, unsigned long long N, size_t MinDigits, IntegerStyle Style) write_integer() argument
128 write_integer(raw_ostream &S, long long N, size_t MinDigits, IntegerStyle Style) write_integer() argument
133 write_hex(raw_ostream &S, uint64_t N, HexPrintStyle Style, Optional<size_t> Width) write_hex() argument
163 write_double(raw_ostream &S, double N, FloatStyle Style, Optional<size_t> Precision) write_double() argument
253 getDefaultPrecision(FloatStyle Style) getDefaultPrecision() argument
[all...]
H A DPath.cpp37 using llvm::sys::path::Style;
39 inline Style real_style(Style style) { in real_style()
41 return (style == Style::posix) ? Style::posix : Style::windows; in real_style()
43 return (style == Style::windows) ? Style::windows : Style::posix; in real_style()
47 inline const char *separators(Style styl
[all...]
H A DChrono.cpp54 StringRef Style) { in format()
60 if (Style.empty()) Style = "%Y-%m-%d %H:%M:%S.%N"; in format()
63 for (unsigned I = 0; I < Style.size(); ++I) { in format()
64 if (Style[I] == '%' && Style.size() > I + 1) switch (Style[I + 1]) { in format()
85 FStream << Style[I]; in format() local
53 format(const TimePoint< &T, raw_ostream &OS, StringRef Style) format() argument
/third_party/rust/crates/serde/serde_derive/src/
H A Dpretend.rs1 use crate::internals::ast::{Container, Data, Field, Style, Variant};
67 Data::Struct(Style::Struct | Style::Tuple | Style::Newtype, fields) => { in pretend_fields_used()
74 Data::Struct(Style::Unit, _) => quote!(), in pretend_fields_used()
118 Style::Struct | Style::Tuple | Style::Newtype => { in pretend_fields_used_enum()
124 Style::Unit => None, in pretend_fields_used_enum()
166 Style in pretend_variants_used()
[all...]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
H A DTimeZoneFormatTest.java41 import com.ibm.icu.text.TimeZoneFormat.Style;
563 {"Z", 0, "en_US", Style.ISO_EXTENDED_FULL, in TestParse()
566 {"Z", 0, "en_US", Style.SPECIFIC_LONG, in TestParse()
569 {"Zambia time", 0, "en_US", Style.ISO_EXTENDED_FULL, in TestParse()
572 {"Zambia time", 0, "en_US", Style.GENERIC_LOCATION, in TestParse()
575 {"Zambia time", 0, "en_US", Style.ISO_BASIC_LOCAL_FULL, in TestParse()
578 {"+00:00", 0, "en_US", Style.ISO_EXTENDED_FULL, in TestParse()
581 {"-01:30:45", 0, "en_US", Style.ISO_EXTENDED_FULL, in TestParse()
584 {"-7", 0, "en_US", Style.ISO_BASIC_LOCAL_FULL, in TestParse()
587 {"-2222", 0, "en_US", Style in TestParse()
[all...]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
H A DTimeZoneFormatTest.java42 import ohos.global.icu.text.TimeZoneFormat.Style;
566 {"Z", 0, "en_US", Style.ISO_EXTENDED_FULL, in TestParse()
569 {"Z", 0, "en_US", Style.SPECIFIC_LONG, in TestParse()
572 {"Zambia time", 0, "en_US", Style.ISO_EXTENDED_FULL, in TestParse()
575 {"Zambia time", 0, "en_US", Style.GENERIC_LOCATION, in TestParse()
578 {"Zambia time", 0, "en_US", Style.ISO_BASIC_LOCAL_FULL, in TestParse()
581 {"+00:00", 0, "en_US", Style.ISO_EXTENDED_FULL, in TestParse()
584 {"-01:30:45", 0, "en_US", Style.ISO_EXTENDED_FULL, in TestParse()
587 {"-7", 0, "en_US", Style.ISO_BASIC_LOCAL_FULL, in TestParse()
590 {"-2222", 0, "en_US", Style in TestParse()
[all...]
/third_party/rust/crates/env_logger/src/fmt/writer/termcolor/
H A Dextern_impl.rs18 /// Begin a new [`Style`].
41 /// [`Style`]: struct.Style.html
42 pub fn style(&self) -> Style { in style()
43 Style { in style()
49 /// Get the default [`Style`] for the given level.
52 pub fn default_level_style(&self, level: Level) -> Style { in default_level_style()
64 /// Get a printable [`Style`] for the given level.
191 /// Call [`Formatter::style`] to get a `Style` and use the builder methods to
242 pub struct Style { structure names
257 impl Style { global() impls
[all...]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/
H A DTrieMapTest.java29 import ohos.global.icu.dev.test.util.TrieMap.Style;
134 checkGet(unicodeTestMap, TrieMap.Style.BYTES); in TestGet()
135 checkGet(unicodeTestMap, TrieMap.Style.CHARS); in TestGet()
138 private void checkGet(Map<String, Integer> testmap, TrieMap.Style style) { in checkGet()
162 timeIteration(unicodeTestMap, comparisonTime, Style.BYTES, 5); in TestTimeIteration()
163 timeIteration(unicodeTestMap, comparisonTime, Style.CHARS, 3); in TestTimeIteration()
167 public long timeIteration(Map<String, Integer> testMap, long comparisonTime, Style style, double ratioToMap) { in timeIteration()
216 checkContents(unicodeTestMap, Style.BYTES); in TestContents()
217 checkContents(unicodeTestMap, Style.CHARS); in TestContents()
220 public void checkContents(Map<String, Integer> testMap, Style styl
[all...]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
H A DTrieMapTest.java28 import com.ibm.icu.dev.test.util.TrieMap.Style;
131 checkGet(unicodeTestMap, TrieMap.Style.BYTES); in TestGet()
132 checkGet(unicodeTestMap, TrieMap.Style.CHARS); in TestGet()
135 private void checkGet(Map<String, Integer> testmap, TrieMap.Style style) { in checkGet()
159 timeIteration(unicodeTestMap, comparisonTime, Style.BYTES, 5); in TestTimeIteration()
160 timeIteration(unicodeTestMap, comparisonTime, Style.CHARS, 3); in TestTimeIteration()
164 public long timeIteration(Map<String, Integer> testMap, long comparisonTime, Style style, double ratioToMap) { in timeIteration()
213 checkContents(unicodeTestMap, Style.BYTES); in TestContents()
214 checkContents(unicodeTestMap, Style.CHARS); in TestContents()
217 public void checkContents(Map<String, Integer> testMap, Style styl
[all...]
/third_party/node/deps/v8/src/objects/
H A Djs-display-names.cc63 UDisplayContext ToUDisplayContext(JSDisplayNames::Style style) { in ToUDisplayContext()
65 case JSDisplayNames::Style::kLong: in ToUDisplayContext()
67 case JSDisplayNames::Style::kShort: in ToUDisplayContext()
68 case JSDisplayNames::Style::kNarrow: in ToUDisplayContext()
91 JSDisplayNames::Style style, bool fallback, in LocaleDisplayNamesCommon()
114 JSDisplayNames::Style style_;
119 LanguageNames(const icu::Locale& locale, JSDisplayNames::Style style, in LanguageNames()
156 RegionNames(const icu::Locale& locale, JSDisplayNames::Style style, in RegionNames()
181 ScriptNames(const icu::Locale& locale, JSDisplayNames::Style style, in ScriptNames()
206 KeyValueDisplayNames(const icu::Locale& locale, JSDisplayNames::Style styl
[all...]
H A Djs-list-format.cc34 UListFormatterWidth GetIcuWidth(JSListFormat::Style style) { in GetIcuWidth()
36 case JSListFormat::Style::LONG: in GetIcuWidth()
38 case JSListFormat::Style::SHORT: in GetIcuWidth()
40 case JSListFormat::Style::NARROW: in GetIcuWidth()
112 Maybe<Style> maybe_style = GetStringOption<Style>( in New()
114 {Style::LONG, Style::SHORT, Style::NARROW}, Style in New()
[all...]
H A Djs-list-format.h64 // Style: identifying the relative time format style used.
67 enum class Style { class in v8::internal::JSListFormat
72 inline void set_style(Style style);
73 inline Style style() const;
89 STATIC_ASSERT(Style::LONG <= StyleBits::kMax);
90 STATIC_ASSERT(Style::SHORT <= StyleBits::kMax);
91 STATIC_ASSERT(Style::NARROW <= StyleBits::kMax);
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DRelativeDateTimeFormatter.java88 public static enum Style { enum in RelativeDateTimeFormatter
550 return getInstance(ULocale.getDefault(), null, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance()
561 return getInstance(locale, null, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance()
586 return getInstance(locale, nf, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance()
603 Style style, in getInstance()
972 private String getAbsoluteUnitString(Style style, AbsoluteUnit unit, Direction direction) { in getAbsoluteUnitString()
1037 public Style getFormatStyle() { in getFormatStyle()
1062 EnumMap<Style, EnumMap<AbsoluteUnit, EnumMap<Direction, String>>> qualitativeUnitMap, in RelativeDateTimeFormatter()
1063 EnumMap<Style, EnumMap<RelativeUnit, String[][]>> patternMap, in RelativeDateTimeFormatter()
1067 Style styl in RelativeDateTimeFormatter()
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
H A DRelativeDateTimeFormatter.java86 public static enum Style { enum in RelativeDateTimeFormatter
477 return getInstance(ULocale.getDefault(), null, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance()
487 return getInstance(locale, null, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance()
510 return getInstance(locale, nf, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance()
526 Style style, in getInstance()
886 private String getAbsoluteUnitString(Style style, AbsoluteUnit unit, Direction direction) { in getAbsoluteUnitString()
947 public Style getFormatStyle() { in getFormatStyle()
972 EnumMap<Style, EnumMap<AbsoluteUnit, EnumMap<Direction, String>>> qualitativeUnitMap, in RelativeDateTimeFormatter()
973 EnumMap<Style, EnumMap<RelativeUnit, String[][]>> patternMap, in RelativeDateTimeFormatter()
977 Style styl in RelativeDateTimeFormatter()
[all...]
/third_party/icu/icu4c/source/i18n/unicode/
H A Dscientificnumberformatter.h146 class U_I18N_API Style : public UObject { class in ScientificNumberFormatter
148 virtual Style *clone() const = 0;
160 class U_I18N_API SuperscriptStyle : public Style {
172 class U_I18N_API MarkupStyle : public Style {
177 : Style(), in MarkupStyle()
195 Style *styleToAdopt,
206 Style *styleToAdopt,
211 Style *fStyle;
/third_party/node/deps/icu-small/source/i18n/unicode/
H A Dscientificnumberformatter.h146 class U_I18N_API Style : public UObject { class in ScientificNumberFormatter
148 virtual Style *clone() const = 0;
160 class U_I18N_API SuperscriptStyle : public Style {
172 class U_I18N_API MarkupStyle : public Style {
177 : Style(), in MarkupStyle()
195 Style *styleToAdopt,
206 Style *styleToAdopt,
211 Style *fStyle;
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
H A Dscientificnumberformatter.h146 class U_I18N_API Style : public UObject { class in ScientificNumberFormatter
148 virtual Style *clone() const = 0;
160 class U_I18N_API SuperscriptStyle : public Style {
172 class U_I18N_API MarkupStyle : public Style {
177 : Style(), in MarkupStyle()
195 Style *styleToAdopt,
206 Style *styleToAdopt,
211 Style *fStyle;

Completed in 14 milliseconds

12345678