Lines Matching defs:map
174 std::map<std::string, std::string> &map)
195 map.insert(make_pair(optionName, optionBuf.data()));
201 std::map<std::string, std::string> &map)
218 map.insert(make_pair(optionName, std::to_string(integerValue)));
226 std::map<std::string, std::string> &map)
243 map.insert(make_pair(optionName, value));
248 void GetDateOptionValues(napi_env env, napi_value options, std::map<std::string, std::string> &map)
250 GetOptionValue(env, options, "calendar", map);
251 GetOptionValue(env, options, "dateStyle", map);
252 GetOptionValue(env, options, "timeStyle", map);
253 GetOptionValue(env, options, "hourCycle", map);
254 GetOptionValue(env, options, "timeZone", map);
255 GetOptionValue(env, options, "timeZoneName", map);
256 GetOptionValue(env, options, "numberingSystem", map);
257 GetBoolOptionValue(env, options, "hour12", map);
258 GetOptionValue(env, options, "weekday", map);
259 GetOptionValue(env, options, "era", map);
260 GetOptionValue(env, options, "year", map);
261 GetOptionValue(env, options, "month", map);
262 GetOptionValue(env, options, "day", map);
263 GetOptionValue(env, options, "hour", map);
264 GetOptionValue(env, options, "minute", map);
265 GetOptionValue(env, options, "second", map);
266 GetOptionValue(env, options, "localeMatcher", map);
267 GetOptionValue(env, options, "formatMatcher", map);
268 GetOptionValue(env, options, "dayPeriod", map);
271 void GetRelativeTimeOptionValues(napi_env env, napi_value options, std::map<std::string, std::string> &map)
273 GetOptionValue(env, options, "localeMatcher", map);
274 GetOptionValue(env, options, "numeric", map);
275 GetOptionValue(env, options, "style", map);
320 std::map<std::string, std::string> map = {};
322 GetOptionValue(env, argv[1], "calendar", map);
323 GetOptionValue(env, argv[1], "collation", map);
324 GetOptionValue(env, argv[1], "hourCycle", map);
325 GetOptionValue(env, argv[1], "numberingSystem", map);
326 GetBoolOptionValue(env, argv[1], "numeric", map);
327 GetOptionValue(env, argv[1], "caseFirst", map);
337 if (!obj->InitLocaleContext(env, info, localeTag, map)) {
345 std::map<std::string, std::string> &map)
354 locale_ = std::make_unique<LocaleInfo>(localeTag, map);
404 std::map<std::string, std::string> map = {};
406 GetDateOptionValues(env, argv[1], map);
416 if (!obj->InitDateTimeFormatContext(env, info, localeTags, map)) {
425 std::map<std::string, std::string> &map)
434 datefmt_ = DateTimeFormat::CreateInstance(localeTags, map);
467 std::map<std::string, std::string> map = {};
469 GetRelativeTimeOptionValues(env, argv[1], map);
479 if (!obj->InitRelativeTimeFormatContext(env, info, localeTags, map)) {
488 std::vector<std::string> localeTags, std::map<std::string, std::string> &map)
491 relativetimefmt_ = std::make_unique<RelativeTimeFormat>(localeTags, map);
556 void GetNumberOptionValues(napi_env env, napi_value options, std::map<std::string, std::string> &map)
558 GetOptionValue(env, options, "currency", map);
559 GetOptionValue(env, options, "currencySign", map);
560 GetOptionValue(env, options, "currencyDisplay", map);
561 GetOptionValue(env, options, "unit", map);
562 GetOptionValue(env, options, "unitDisplay", map);
563 GetOptionValue(env, options, "compactDisplay", map);
564 GetOptionValue(env, options, "signDisplay", map);
565 GetOptionValue(env, options, "localeMatcher", map);
566 GetOptionValue(env, options, "style", map);
567 GetOptionValue(env, options, "numberingSystem", map);
568 GetOptionValue(env, options, "notation", map);
569 GetOptionValue(env, options, "unitUsage", map);
570 GetBoolOptionValue(env, options, "useGrouping", map);
571 GetIntegerOptionValue(env, options, "minimumIntegerDigits", map);
572 int64_t minFd = GetIntegerOptionValue(env, options, "minimumFractionDigits", map);
573 int64_t maxFd = GetIntegerOptionValue(env, options, "maximumFractionDigits", map);
578 GetIntegerOptionValue(env, options, "minimumSignificantDigits", map);
579 GetIntegerOptionValue(env, options, "maximumSignificantDigits", map);
611 std::map<std::string, std::string> map = {};
613 GetNumberOptionValues(env, argv[1], map);
623 if (!obj->InitNumberFormatContext(env, info, localeTags, map)) {
632 std::map<std::string, std::string> &map)
641 numberfmt_ = std::make_unique<NumberFormat>(localeTags, map);
991 void SetOptionProperties(napi_env env, napi_value &result, std::map<std::string, std::string> &options,
1006 void SetIntegerOptionProperties(napi_env env, napi_value &result, std::map<std::string, std::string> &options,
1025 void SetBooleanOptionProperties(napi_env env, napi_value &result, std::map<std::string, std::string> &options,
1055 std::map<std::string, std::string> options = {};
1078 std::map<std::string, std::string> options = {};
1117 std::map<std::string, std::string> options = {};
1166 void GetCollatorLocaleMatcher(napi_env env, napi_value options, std::map<std::string, std::string> &map)
1168 GetOptionValue(env, options, "localeMatcher", map);
1169 auto it = map.find("localeMatcher");
1170 if (it != map.end()) {
1177 map.insert(std::make_pair("localeMatcher", "best fit"));
1181 void GetCollatorUsage(napi_env env, napi_value options, std::map<std::string, std::string> &map)
1183 GetOptionValue(env, options, "usage", map);
1184 auto it = map.find("usage");
1185 if (it != map.end()) {
1192 map.insert(std::make_pair("usage", "sort"));
1196 void GetCollatorSensitivity(napi_env env, napi_value options, std::map<std::string, std::string> &map)
1198 GetOptionValue(env, options, "sensitivity", map);
1199 auto it = map.find("sensitivity");
1200 if (it != map.end()) {
1207 map.insert(std::make_pair("sensitivity", "variant"));
1211 void GetCollatorIgnorePunctuation(napi_env env, napi_value options, std::map<std::string, std::string> &map)
1213 GetBoolOptionValue(env, options, "ignorePunctuation", map);
1214 auto it = map.find("ignorePunctuation");
1215 if (it != map.end()) {
1222 map.insert(std::make_pair("ignorePunctuation", "false"));
1226 void GetCollatorNumeric(napi_env env, napi_value options, std::map<std::string, std::string> &map)
1228 GetBoolOptionValue(env, options, "numeric", map);
1229 auto it = map.find("numeric");
1230 if (it != map.end()) {
1239 void GetCollatorCaseFirst(napi_env env, napi_value options, std::map<std::string, std::string> &map)
1241 GetOptionValue(env, options, "caseFirst", map);
1242 auto it = map.find("caseFirst");
1243 if (it != map.end()) {
1252 void GetCollatorCollation(napi_env env, napi_value options, std::map<std::string, std::string> &map)
1254 GetOptionValue(env, options, "collation", map);
1255 auto it = map.find("collation");
1256 if (it != map.end()) {
1276 map["collation"] = "default";
1281 void GetCollatorOptionValue(napi_env env, napi_value options, std::map<std::string, std::string> &map)
1283 GetCollatorLocaleMatcher(env, options, map);
1284 GetCollatorUsage(env, options, map);
1285 GetCollatorSensitivity(env, options, map);
1286 GetCollatorIgnorePunctuation(env, options, map);
1287 GetCollatorNumeric(env, options, map);
1288 GetCollatorCaseFirst(env, options, map);
1289 GetCollatorCollation(env, options, map);
1344 std::map<std::string, std::string> map = {};
1346 GetCollatorOptionValue(env, argv[1], map);
1356 if (!obj->InitCollatorContext(env, info, localeTags, map)) {
1365 std::map<std::string, std::string> &map)
1374 collator_ = std::make_unique<Collator>(localeTags, map);
1562 std::map<std::string, std::string> options = {};
1575 void GetPluralRulesType(napi_env env, napi_value options, std::map<std::string, std::string> &map)
1577 GetOptionValue(env, options, "type", map);
1578 auto it = map.find("type");
1579 if (it != map.end()) {
1586 map.insert(std::make_pair("type", "cardinal"));
1590 void GetPluralRulesInteger(napi_env env, napi_value options, std::map<std::string, std::string> &map)
1592 GetIntegerOptionValue(env, options, "minimumIntegerDigits", map);
1593 auto it = map.find("minimumIntegerDigits");
1594 if (it != map.end()) {
1603 map.insert(std::make_pair("minimumIntegerDigits", std::to_string(1)));
1607 void GetPluralRulesFractions(napi_env env, napi_value options, std::map<std::string, std::string> &map)
1609 GetIntegerOptionValue(env, options, "minimumFractionDigits", map);
1610 auto it = map.find("minimumFractionDigits");
1611 if (it != map.end()) {
1621 GetIntegerOptionValue(env, options, "maximumFractionDigits", map);
1622 it = map.find("maximumFractionDigits");
1623 if (it != map.end()) {
1634 void GetPluralRulesSignificant(napi_env env, napi_value options, std::map<std::string, std::string> &map)
1637 GetIntegerOptionValue(env, options, "minimumSignificantDigits", map);
1638 auto it = map.find("minimumSignificantDigits");
1639 if (it != map.end()) {
1653 GetIntegerOptionValue(env, options, "maximumSignificantDigits", map);
1654 it = map.find("maximumSignificantDigits");
1655 if (it != map.end()) {
1667 void GetPluralRulesOptionValues(napi_env env, napi_value options, std::map<std::string, std::string> &map)
1669 GetCollatorLocaleMatcher(env, options, map);
1670 GetPluralRulesType(env, options, map);
1671 GetPluralRulesInteger(env, options, map);
1672 GetPluralRulesFractions(env, options, map);
1673 GetPluralRulesSignificant(env, options, map);
1727 std::map<std::string, std::string> map = {};
1729 GetPluralRulesOptionValues(env, argv[1], map);
1739 if (!obj->InitPluralRulesContext(env, info, localeTags, map)) {
1748 std::map<std::string, std::string> &map)
1757 pluralrules_ = std::make_unique<PluralRules>(localeTags, map);