Home
last modified time | relevance | path

Searched refs:macros (Results 1 – 25 of 1024) sorted by relevance

12345678910>>...41

/external/icu/android_icu4j/src/main/java/android/icu/number/
DNumberSkeletonImpl.java484 MacroProps macros = parseSkeleton(skeletonString); in create() local
485 return NumberFormatter.with().macros(macros); in create()
495 public static String generate(MacroProps macros) { in generate() argument
497 generateSkeleton(macros, sb); in generate()
510 MacroProps macros = new MacroProps(); in parseSkeleton() local
540 stem = parseStem(segment, stemTrie, macros); in parseSkeleton()
544 stem = parseOption(stem, segment, macros); in parseSkeleton()
589 return macros; in parseSkeleton()
597 …private static ParseState parseStem(StringSegment segment, CharsTrie stemTrie, MacroProps macros) { in parseStem() argument
601 checkNull(macros.precision, segment); in parseStem()
[all …]
DNumberFormatterSettings.java507 public T macros(MacroProps macros) { in macros() method in NumberFormatterSettings
508 return create(KEY_MACROS, macros); in macros()
564 MacroProps macros = new MacroProps(); in resolve() local
569 macros.fallback((MacroProps) current.value); in resolve()
572 if (macros.loc == null) { in resolve()
573 macros.loc = (ULocale) current.value; in resolve()
577 if (macros.notation == null) { in resolve()
578 macros.notation = (Notation) current.value; in resolve()
582 if (macros.unit == null) { in resolve()
583 macros.unit = (MeasureUnit) current.value; in resolve()
[all …]
DNumberFormatterImpl.java46 public NumberFormatterImpl(MacroProps macros) { in NumberFormatterImpl() argument
47 this(macrosToMicroGenerator(macros, true)); in NumberFormatterImpl()
54 MacroProps macros, in formatStatic() argument
57 MicroProps micros = preProcessUnsafe(macros, inValue); in formatStatic()
70 MacroProps macros, in getPrefixSuffixStatic() argument
74 MicroPropsGenerator microPropsGenerator = macrosToMicroGenerator(macros, false); in getPrefixSuffixStatic()
110 private static MicroProps preProcessUnsafe(MacroProps macros, DecimalQuantity inValue) { in preProcessUnsafe() argument
111 MicroPropsGenerator microPropsGenerator = macrosToMicroGenerator(macros, false); in preProcessUnsafe()
173 private static MicroPropsGenerator macrosToMicroGenerator(MacroProps macros, boolean safe) { in macrosToMicroGenerator() argument
181 boolean isCurrency = unitIsCurrency(macros.unit); in macrosToMicroGenerator()
[all …]
DNumberRangeFormatterSettings.java153 RangeMacroProps macros = new RangeMacroProps(); in resolve() local
161 if (macros.loc == null) { in resolve()
162 macros.loc = (ULocale) current.value; in resolve()
166 if (macros.formatter1 == null) { in resolve()
167 macros.formatter1 = (UnlocalizedNumberFormatter) current.value; in resolve()
171 if (macros.formatter2 == null) { in resolve()
172 macros.formatter2 = (UnlocalizedNumberFormatter) current.value; in resolve()
176 if (macros.sameFormatters == -1) { in resolve()
177 macros.sameFormatters = (boolean) current.value ? 1 : 0; in resolve()
181 if (macros.collapse == null) { in resolve()
[all …]
DNumberPropertyMapper.java42 MacroProps macros = oldToNew(properties, symbols, null); in create() local
43 return NumberFormatter.with().macros(macros); in create()
51 MacroProps macros = oldToNew(properties, symbols, exportedProperties); in create() local
52 return NumberFormatter.with().macros(macros); in create()
84 MacroProps macros = new MacroProps(); in oldToNew() local
91 macros.symbols = symbols; in oldToNew()
101 macros.rules = rules; in oldToNew()
113 macros.affixProvider = affixProvider; in oldToNew()
130 macros.unit = currency; in oldToNew()
199 macros.precision = rounding; in oldToNew()
[all …]
DNumberRangeFormatterImpl.java110 public NumberRangeFormatterImpl(RangeMacroProps macros) { in NumberRangeFormatterImpl() argument
111 … formatterImpl1 = new NumberFormatterImpl(macros.formatter1 != null ? macros.formatter1.resolve() in NumberRangeFormatterImpl()
112 : NumberFormatter.withLocale(macros.loc).resolve()); in NumberRangeFormatterImpl()
113 … formatterImpl2 = new NumberFormatterImpl(macros.formatter2 != null ? macros.formatter2.resolve() in NumberRangeFormatterImpl()
114 : NumberFormatter.withLocale(macros.loc).resolve()); in NumberRangeFormatterImpl()
115 fSameFormatters = macros.sameFormatters != 0; in NumberRangeFormatterImpl()
116 … fCollapse = macros.collapse != null ? macros.collapse : NumberRangeFormatter.RangeCollapse.AUTO; in NumberRangeFormatterImpl()
117 fIdentityFallback = macros.identityFallback != null ? macros.identityFallback in NumberRangeFormatterImpl()
127 getNumberRangeData(macros.loc, "latn", this); in NumberRangeFormatterImpl()
130 fPluralRanges = new StandardPluralRanges(macros.loc); in NumberRangeFormatterImpl()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DNumberSkeletonImpl.java483 MacroProps macros = parseSkeleton(skeletonString); in create() local
484 return NumberFormatter.with().macros(macros); in create()
494 public static String generate(MacroProps macros) { in generate() argument
496 generateSkeleton(macros, sb); in generate()
509 MacroProps macros = new MacroProps(); in parseSkeleton() local
539 stem = parseStem(segment, stemTrie, macros); in parseSkeleton()
543 stem = parseOption(stem, segment, macros); in parseSkeleton()
588 return macros; in parseSkeleton()
596 …private static ParseState parseStem(StringSegment segment, CharsTrie stemTrie, MacroProps macros) { in parseStem() argument
600 checkNull(macros.precision, segment); in parseStem()
[all …]
DNumberFormatterSettings.java519 public T macros(MacroProps macros) { in macros() method in NumberFormatterSettings
520 return create(KEY_MACROS, macros); in macros()
577 MacroProps macros = new MacroProps(); in resolve() local
582 macros.fallback((MacroProps) current.value); in resolve()
585 if (macros.loc == null) { in resolve()
586 macros.loc = (ULocale) current.value; in resolve()
590 if (macros.notation == null) { in resolve()
591 macros.notation = (Notation) current.value; in resolve()
595 if (macros.unit == null) { in resolve()
596 macros.unit = (MeasureUnit) current.value; in resolve()
[all …]
DNumberFormatterImpl.java45 public NumberFormatterImpl(MacroProps macros) { in NumberFormatterImpl() argument
46 this(macrosToMicroGenerator(macros, true)); in NumberFormatterImpl()
53 MacroProps macros, in formatStatic() argument
56 MicroProps micros = preProcessUnsafe(macros, inValue); in formatStatic()
69 MacroProps macros, in getPrefixSuffixStatic() argument
73 MicroPropsGenerator microPropsGenerator = macrosToMicroGenerator(macros, false); in getPrefixSuffixStatic()
109 private static MicroProps preProcessUnsafe(MacroProps macros, DecimalQuantity inValue) { in preProcessUnsafe() argument
110 MicroPropsGenerator microPropsGenerator = macrosToMicroGenerator(macros, false); in preProcessUnsafe()
172 private static MicroPropsGenerator macrosToMicroGenerator(MacroProps macros, boolean safe) { in macrosToMicroGenerator() argument
180 boolean isCurrency = unitIsCurrency(macros.unit); in macrosToMicroGenerator()
[all …]
DNumberRangeFormatterSettings.java157 RangeMacroProps macros = new RangeMacroProps(); in resolve() local
165 if (macros.loc == null) { in resolve()
166 macros.loc = (ULocale) current.value; in resolve()
170 if (macros.formatter1 == null) { in resolve()
171 macros.formatter1 = (UnlocalizedNumberFormatter) current.value; in resolve()
175 if (macros.formatter2 == null) { in resolve()
176 macros.formatter2 = (UnlocalizedNumberFormatter) current.value; in resolve()
180 if (macros.sameFormatters == -1) { in resolve()
181 macros.sameFormatters = (boolean) current.value ? 1 : 0; in resolve()
185 if (macros.collapse == null) { in resolve()
[all …]
DNumberPropertyMapper.java41 MacroProps macros = oldToNew(properties, symbols, null); in create() local
42 return NumberFormatter.with().macros(macros); in create()
50 MacroProps macros = oldToNew(properties, symbols, exportedProperties); in create() local
51 return NumberFormatter.with().macros(macros); in create()
83 MacroProps macros = new MacroProps(); in oldToNew() local
90 macros.symbols = symbols; in oldToNew()
100 macros.rules = rules; in oldToNew()
112 macros.affixProvider = affixProvider; in oldToNew()
129 macros.unit = currency; in oldToNew()
198 macros.precision = rounding; in oldToNew()
[all …]
DNumberRangeFormatterImpl.java109 public NumberRangeFormatterImpl(RangeMacroProps macros) { in NumberRangeFormatterImpl() argument
110 … formatterImpl1 = new NumberFormatterImpl(macros.formatter1 != null ? macros.formatter1.resolve() in NumberRangeFormatterImpl()
111 : NumberFormatter.withLocale(macros.loc).resolve()); in NumberRangeFormatterImpl()
112 … formatterImpl2 = new NumberFormatterImpl(macros.formatter2 != null ? macros.formatter2.resolve() in NumberRangeFormatterImpl()
113 : NumberFormatter.withLocale(macros.loc).resolve()); in NumberRangeFormatterImpl()
114 fSameFormatters = macros.sameFormatters != 0; in NumberRangeFormatterImpl()
115 … fCollapse = macros.collapse != null ? macros.collapse : NumberRangeFormatter.RangeCollapse.AUTO; in NumberRangeFormatterImpl()
116 fIdentityFallback = macros.identityFallback != null ? macros.identityFallback in NumberRangeFormatterImpl()
126 getNumberRangeData(macros.loc, "latn", this); in NumberRangeFormatterImpl()
129 fPluralRanges = new StandardPluralRanges(macros.loc); in NumberRangeFormatterImpl()
/external/icu/icu4c/source/i18n/
Dnumber_skeletons.cpp411 MacroProps macros = parseSkeleton(skeletonString, status); in create() local
412 return NumberFormatter::with().macros(macros); in create()
415 UnicodeString skeleton::generate(const MacroProps& macros, UErrorCode& status) { in generate() argument
418 GeneratorHelpers::generateSkeleton(macros, sb, status); in generate()
430 MacroProps macros; in parseSkeleton() local
460 stem = parseStem(segment, stemTrie, seen, macros, status); in parseSkeleton()
464 stem = parseOption(stem, segment, macros, status); in parseSkeleton()
467 if (U_FAILURE(status)) { return macros; } in parseSkeleton()
478 return macros; in parseSkeleton()
489 return macros; in parseSkeleton()
[all …]
Dnumber_formatimpl.cpp70 NumberFormatterImpl::NumberFormatterImpl(const MacroProps& macros, UErrorCode& status) in NumberFormatterImpl() argument
71 : NumberFormatterImpl(macros, true, status) { in NumberFormatterImpl()
74 int32_t NumberFormatterImpl::formatStatic(const MacroProps& macros, DecimalQuantity& inValue, in formatStatic() argument
76 NumberFormatterImpl impl(macros, false, status); in formatStatic()
84 int32_t NumberFormatterImpl::getPrefixSuffixStatic(const MacroProps& macros, int8_t signum, in getPrefixSuffixStatic() argument
87 NumberFormatterImpl impl(macros, false, status); in getPrefixSuffixStatic()
154 NumberFormatterImpl::NumberFormatterImpl(const MacroProps& macros, bool safe, UErrorCode& status) { in NumberFormatterImpl() argument
155 fMicroPropsGenerator = macrosToMicroGenerator(macros, safe, status); in NumberFormatterImpl()
161 NumberFormatterImpl::macrosToMicroGenerator(const MacroProps& macros, bool safe, UErrorCode& status… in macrosToMicroGenerator() argument
166 if (macros.copyErrorTo(status)) { in macrosToMicroGenerator()
[all …]
Dnumber_skeletons.h134 UnicodeString generate(const MacroProps& macros, UErrorCode& status);
149 MacroProps& macros, UErrorCode& status);
158 parseOption(ParseState stem, const StringSegment& segment, MacroProps& macros, UErrorCode& status);
211 bool parseExponentWidthOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status);
216 bool parseExponentSignOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status);
218 void parseCurrencyOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status);
222 void parseMeasureUnitOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status);
226 void parseMeasurePerUnitOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status…
228 void parseFractionStem(const StringSegment& segment, MacroProps& macros, UErrorCode& status);
232 void parseDigitsStem(const StringSegment& segment, MacroProps& macros, UErrorCode& status);
[all …]
Dnumber_mapper.cpp27 … return NumberFormatter::with().macros(oldToNew(properties, symbols, warehouse, nullptr, status)); in create()
35 return NumberFormatter::with().macros( in create()
45 MacroProps macros; in oldToNew() local
52 macros.symbols.setTo(symbols); in oldToNew()
59 macros.rules = properties.currencyPluralInfo.fPtr->getPluralRules(); in oldToNew()
76 macros.affixProvider = affixProvider; in oldToNew()
89 macros.unit = currency; // NOLINT in oldToNew()
92 macros.currencySymbols = &warehouse.currencySymbols; in oldToNew()
157 macros.precision = precision; in oldToNew()
164 macros.integerWidth = IntegerWidth( in oldToNew()
[all …]
Dnumber_formatimpl.h32 NumberFormatterImpl(const MacroProps &macros, UErrorCode &status);
38 formatStatic(const MacroProps &macros, DecimalQuantity &inValue, NumberStringBuilder &outString,
47 static int32_t getPrefixSuffixStatic(const MacroProps& macros, int8_t signum,
104 NumberFormatterImpl(const MacroProps &macros, bool safe, UErrorCode &status);
132 macrosToMicroGenerator(const MacroProps &macros, bool safe, UErrorCode &status);
/external/python/cpython2/Lib/distutils/
Dccompiler.py106 self.macros = []
170 for defn in self.macros:
206 del self.macros[i]
209 self.macros.append (defn)
224 del self.macros[i]
227 self.macros.append (undefn)
323 def _setup_compile(self, outdir, macros, incdirs, sources, depends, argument
331 if macros is None:
332 macros = self.macros
333 elif isinstance(macros, list):
[all …]
/external/python/cpython3/Lib/distutils/
Dccompiler.py98 self.macros = []
161 for defn in self.macros:
195 del self.macros[i]
197 self.macros.append((name, value))
212 del self.macros[i]
215 self.macros.append(undefn)
310 def _setup_compile(self, outdir, macros, incdirs, sources, depends, argument
318 if macros is None:
319 macros = self.macros
320 elif isinstance(macros, list):
[all …]
/external/elfutils/tests/
Drun-macro-test.sh33 testfiles testfile-macinfo testfile-macros
34 tempfiles readelf.macros.out
39 | grep macro_info > readelf.macros.out ||
41 testrun_compare cat readelf.macros.out <<\EOF
45 testrun ${abs_top_builddir}/src/readelf --debug-dump=info testfile-macros \
46 | grep GNU_macros > readelf.macros.out ||
48 testrun_compare cat readelf.macros.out <<\EOF
/external/libcxx/utils/libcxx/
Dcompiler.py80 macros = self.dumpMacros()
81 if macros is None:
85 if '__clang__' in macros.keys():
88 if '__apple_build_version__' in macros.keys():
90 major_ver = macros['__clang_major__']
91 minor_ver = macros['__clang_minor__']
92 patchlevel = macros['__clang_patchlevel__']
93 elif '__GNUC__' in macros.keys():
95 major_ver = macros['__GNUC__']
96 minor_ver = macros['__GNUC_MINOR__']
[all …]
/external/swiftshader/third_party/subzero/pydir/
Dsz_driver.py10 macros = ['#include <stddef.h>',
17 macros.append((
22 macros.append((
25 macros += ['#ifdef __cplusplus',
29 return '\n'.join(macros) + '\n'
/external/libchrome/libchrome_tools/patch/
Dmacros.patch1 diff --git a/base/macros.h b/base/macros.h
3 --- a/base/macros.h
4 +++ b/base/macros.h
11 +#include <android-base/macros.h>
14 +// We define following macros conditionally as they may be defined by another libraries.
/external/brotli/
Dsetup.py88 macros = ext.define_macros[:]
90 macros.append(('OS_MACOSX', '1'))
95 macros.append(('_hypot', 'hypot'))
97 macros.append((undef,))
102 macros=macros,
/external/libexif/m4m/
Dgp-byteorder.m46 dnl Create a header file that guarantees that byte swapping macros of the
32 dnl Create a header file that defines extended byte swapping macros
62 dnl Look for NetBSD-style extended byte swapping macros
66 /* extended byte swapping macros are already available */
73 dnl Look for standard byte swapping macros
89 dnl Look for generic byte swapping macros
179 /* Use these as generic byteswapping macros on this little endian system */
204 /* The byte swapping macros have the form: */
217 /* Define aliases for the standard byte swapping macros */
218 /* Arguments to these macros must be properly aligned on natural word */
[all …]

12345678910>>...41