Lines Matching defs:obj

329     std::unique_ptr<IntlAddon> obj = nullptr;
330 obj = std::make_unique<IntlAddon>();
332 napi_wrap(env, thisVar, reinterpret_cast<void *>(obj.get()), IntlAddon::Destructor, nullptr, nullptr);
337 if (!obj->InitLocaleContext(env, info, localeTag, map)) {
340 obj.release();
408 std::unique_ptr<IntlAddon> obj = nullptr;
409 obj = std::make_unique<IntlAddon>();
411 napi_wrap(env, thisVar, reinterpret_cast<void *>(obj.get()), IntlAddon::Destructor, nullptr, nullptr);
416 if (!obj->InitDateTimeFormatContext(env, info, localeTags, map)) {
420 obj.release();
471 std::unique_ptr<IntlAddon> obj = nullptr;
472 obj = std::make_unique<IntlAddon>();
474 napi_wrap(env, thisVar, reinterpret_cast<void *>(obj.get()), IntlAddon::Destructor, nullptr, nullptr);
479 if (!obj->InitRelativeTimeFormatContext(env, info, localeTags, map)) {
483 obj.release();
508 IntlAddon *obj = nullptr;
509 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
510 if (status != napi_ok || !obj || !obj->datefmt_) {
514 std::string value = obj->datefmt_->Format(milliseconds);
540 IntlAddon *obj = nullptr;
541 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
542 if (status != napi_ok || !obj || !obj->datefmt_) {
546 std::string value = obj->datefmt_->FormatRange(firstMilliseconds, secondMilliseconds);
615 std::unique_ptr<IntlAddon> obj = nullptr;
616 obj = std::make_unique<IntlAddon>();
618 napi_wrap(env, thisVar, reinterpret_cast<void *>(obj.get()), IntlAddon::Destructor, nullptr, nullptr);
623 if (!obj->InitNumberFormatContext(env, info, localeTags, map)) {
627 obj.release();
675 IntlAddon *obj = nullptr;
676 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
677 if (status != napi_ok || !obj || !obj->locale_) {
681 std::string value = obj->locale_->GetLanguage();
698 IntlAddon *obj = nullptr;
699 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
700 if (status != napi_ok || !obj || !obj->locale_) {
704 std::string value = obj->locale_->GetScript();
721 IntlAddon *obj = nullptr;
722 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
723 if (status != napi_ok || !obj || !obj->locale_) {
727 std::string value = obj->locale_->GetRegion();
744 IntlAddon *obj = nullptr;
745 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
746 if (status != napi_ok || !obj || !obj->locale_) {
750 std::string value = obj->locale_->GetBaseName();
767 IntlAddon *obj = nullptr;
768 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
769 if (status != napi_ok || !obj || !obj->locale_) {
773 std::string value = obj->locale_->GetCalendar();
790 IntlAddon *obj = nullptr;
791 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
792 if (status != napi_ok || !obj || !obj->locale_) {
796 std::string value = obj->locale_->GetCollation();
813 IntlAddon *obj = nullptr;
814 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
815 if (status != napi_ok || !obj || !obj->locale_) {
819 std::string value = obj->locale_->GetHourCycle();
836 IntlAddon *obj = nullptr;
837 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
838 if (status != napi_ok || !obj || !obj->locale_) {
842 std::string value = obj->locale_->GetNumberingSystem();
859 IntlAddon *obj = nullptr;
860 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
861 if (status != napi_ok || !obj || !obj->locale_) {
865 std::string value = obj->locale_->GetNumeric();
882 IntlAddon *obj = nullptr;
883 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
884 if (status != napi_ok || !obj || !obj->locale_) {
888 std::string value = obj->locale_->GetCaseFirst();
904 IntlAddon *obj = nullptr;
905 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
906 if (status != napi_ok || !obj || !obj->locale_) {
910 std::string value = obj->locale_->ToString();
927 IntlAddon *obj = nullptr;
928 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
929 if (status != napi_ok || !obj || !obj->locale_) {
933 std::string localeTag = obj->locale_->Maximize();
962 IntlAddon *obj = nullptr;
963 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
964 if (status != napi_ok || !obj || !obj->locale_) {
968 std::string localeTag = obj->locale_->Minimize();
1047 IntlAddon *obj = nullptr;
1048 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
1049 if (status != napi_ok || !obj || !obj->relativetimefmt_) {
1056 obj->relativetimefmt_->GetResolvedOptions(options);
1070 IntlAddon *obj = nullptr;
1071 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
1072 if (status != napi_ok || !obj || !obj->datefmt_) {
1079 obj->datefmt_->GetResolvedOptions(options);
1109 IntlAddon *obj = nullptr;
1110 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
1111 if (status != napi_ok || !obj || !obj->numberfmt_) {
1118 obj->numberfmt_->GetResolvedOptions(options);
1150 IntlAddon *obj = nullptr;
1151 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
1152 if (status != napi_ok || !obj || !obj->numberfmt_) {
1156 std::string value = obj->numberfmt_->Format(number);
1348 std::unique_ptr<IntlAddon> obj = nullptr;
1349 obj = std::make_unique<IntlAddon>();
1351 napi_wrap(env, thisVar, reinterpret_cast<void *>(obj.get()), IntlAddon::Destructor, nullptr, nullptr);
1356 if (!obj->InitCollatorContext(env, info, localeTags, map)) {
1360 obj.release();
1421 IntlAddon *obj = nullptr;
1422 status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
1423 if (status != napi_ok || !obj || !obj->relativetimefmt_) {
1427 std::string value = obj->relativetimefmt_->Format(number, unit.data());
1494 IntlAddon *obj = nullptr;
1495 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
1496 if (status != napi_ok || !obj || !obj->relativetimefmt_) {
1501 obj->relativetimefmt_->FormatToParts(number, unit.data(), timeVector);
1530 IntlAddon *obj = nullptr;
1531 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
1532 if (status != napi_ok || !obj || !obj->collator_) {
1537 CompareResult compareResult = obj->collator_->Compare(first.data(), second.data());
1554 IntlAddon *obj = nullptr;
1555 napi_status status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
1556 if (status != napi_ok || !obj || !obj->collator_) {
1563 obj->collator_->ResolvedOptions(options);
1731 std::unique_ptr<IntlAddon> obj = nullptr;
1732 obj = std::make_unique<IntlAddon>();
1734 napi_wrap(env, thisVar, reinterpret_cast<void *>(obj.get()), IntlAddon::Destructor, nullptr, nullptr);
1739 if (!obj->InitPluralRulesContext(env, info, localeTags, map)) {
1743 obj.release();
1783 IntlAddon *obj = nullptr;
1784 status = napi_unwrap(env, thisVar, reinterpret_cast<void **>(&obj));
1785 if (status != napi_ok || !obj || !obj->pluralrules_) {
1790 std::string res = obj->pluralrules_->Select(number);