/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/tool/locale/ |
H A D | LocaleDistanceBuilder.java | 96 private Set<String> resolve(String region) { in resolve() argument 97 Set<String> contained = graph.get(region); in resolve() 101 resolved.putAll(region, contained); // do top level in resolve() 104 resolved.putAll(region, resolve(subregion)); in resolve() 106 return resolved.get(region); in resolve() 359 // and no following region rules. in prune() 360 // If there are region rules, then mark this table for skipping. in prune() 369 // Remove region table -*-*-4 where there are no other region rules. in prune() 495 paradigmLSRs.add(new LSR(max.language, max.script, max.region, LS in build() 848 changeSet(Operation operation, String region) changeSet() argument [all...] |
H A D | LikelySubtagsBuilder.java | 162 // Prune the script and region levels from language with in build() 188 // Prune the region level from language+script with only * for regions. in build() 196 String region = r2lsr.getKey(); in build() 197 // Map the whole lang+script+region to a unique, dense index of the LSR. in build() 198 if (region.isEmpty()) { in build() 201 trieBuilder.addSubtag(region); in build() 237 final String region = ltp.region; in makeTable() 240 set(result, language, script, region, ltp); in makeTable() 244 Collection<String> regionAliases = regionAliasesBuilder.getAliases(region); in makeTable() 303 set(Map<String, Map<String, Map<String, LSR>>> langTable, final String language, final String script, final String region, LSR newValue) set() argument [all...] |
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/locale/ |
H A D | LocaleDistanceBuilder.java | 96 private Set<String> resolve(String region) { in resolve() argument 97 Set<String> contained = graph.get(region); in resolve() 101 resolved.putAll(region, contained); // do top level in resolve() 104 resolved.putAll(region, resolve(subregion)); in resolve() 106 return resolved.get(region); in resolve() 359 // and no following region rules. in prune() 360 // If there are region rules, then mark this table for skipping. in prune() 369 // Remove region table -*-*-4 where there are no other region rules. in prune() 495 paradigmLSRs.add(new LSR(max.language, max.script, max.region, LS in build() 848 changeSet(Operation operation, String region) changeSet() argument [all...] |
H A D | LikelySubtagsBuilder.java | 162 // Prune the script and region levels from language with in build() 188 // Prune the region level from language+script with only * for regions. in build() 196 String region = r2lsr.getKey(); in build() 197 // Map the whole lang+script+region to a unique, dense index of the LSR. in build() 198 if (region.isEmpty()) { in build() 201 trieBuilder.addSubtag(region); in build() 237 final String region = ltp.region; in makeTable() 240 set(result, language, script, region, ltp); in makeTable() 244 Collection<String> regionAliases = regionAliasesBuilder.getAliases(region); in makeTable() 303 set(Map<String, Map<String, Map<String, LSR>>> langTable, final String language, final String script, final String region, LSR newValue) set() argument [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/ |
H A D | LocaleValidityChecker.java | 73 final String region = locale.getCountry(); in isValid() 78 // if (!script.isEmpty() || !region.isEmpty() || variantString.isEmpty() in isValid() 93 if (!isValid(Datatype.region, region, where)) return false; in isValid() 236 if (!isValid(Datatype.region, subtag.substring(0,subtag.length()-4), where)) { in isValidU() 274 String region = subtag.substring(0, subtag.charAt(0) <= '9' ? 3 : 2); in isSubdivision() 275 String subdivision = subtag.substring(region.length()); in isSubdivision() 276 if (ValidIdentifiers.isValid(Datatype.subdivision, datasubtypes, region, subdivision) == null) { in isSubdivision() 279 // Then check for consistency with the locale's region in isSubdivision() 285 if (!region in isSubdivision() [all...] |
H A D | BaseLocale.java | 29 private BaseLocale(String language, String script, String region, String variant) { in BaseLocale() argument 36 if (region != null) { in BaseLocale() 37 _region = AsciiUtil.toUpperString(region).intern(); in BaseLocale() 49 public static BaseLocale getInstance(String language, String script, String region, String variant) { in getInstance() argument 60 Key key = new Key(language, script, region, variant); in getInstance() 115 buf.append("region="); in toString() 132 // Generating a hash value from language, script, region and variant in hashCode() 158 public Key(String language, String script, String region, String variant) { in Key() argument 165 if (region != null) { in Key() 166 _regn = region; in Key() [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/locale/ |
H A D | LocaleValidityChecker.java | 78 final String region = locale.getCountry(); in isValid() 83 // if (!script.isEmpty() || !region.isEmpty() || variantString.isEmpty() in isValid() 98 if (!isValid(Datatype.region, region, where)) return false; in isValid() 241 if (!isValid(Datatype.region, subtag.substring(0,subtag.length()-4), where)) { in isValidU() 279 String region = subtag.substring(0, subtag.charAt(0) <= '9' ? 3 : 2); in isSubdivision() 280 String subdivision = subtag.substring(region.length()); in isSubdivision() 281 if (ValidIdentifiers.isValid(Datatype.subdivision, datasubtypes, region, subdivision) == null) { in isSubdivision() 284 // Then check for consistency with the locale's region in isSubdivision() 290 if (!region in isSubdivision() [all...] |
H A D | BaseLocale.java | 33 private BaseLocale(String language, String script, String region, String variant) { in BaseLocale() argument 40 if (region != null) { in BaseLocale() 41 _region = AsciiUtil.toUpperString(region).intern(); in BaseLocale() 53 public static BaseLocale getInstance(String language, String script, String region, String variant) { in getInstance() argument 64 Key key = new Key(language, script, region, variant); in getInstance() 119 buf.append("region="); in toString() 136 // Generating a hash value from language, script, region and variant in hashCode() 162 public Key(String language, String script, String region, String variant) { in Key() argument 169 if (region != null) { in Key() 170 _regn = region; in Key() [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/ |
H A D | VkImage.hpp | 62 void copyTo(Image *dstImage, const VkImageCopy2KHR ®ion) const; 63 void copyTo(Buffer *dstBuffer, const VkBufferImageCopy2KHR ®ion); 64 void copyFrom(Buffer *srcBuffer, const VkBufferImageCopy2KHR ®ion); 66 void blitTo(Image *dstImage, const VkImageBlit2KHR ®ion, VkFilter filter) const; 68 void resolveTo(Image *dstImage, const VkImageResolve2KHR ®ion) const; 122 void copy(Buffer *buffer, const VkBufferImageCopy2KHR ®ion, bool bufferIsSource); 123 void copySingleAspectTo(Image *dstImage, const VkImageCopy2KHR ®ion) const; 133 VkExtent2D bufferExtentInBlocks(const VkExtent2D &extent, const VkBufferImageCopy2KHR ®ion) const;
|
/third_party/tzdata/ |
H A D | tzselect.ksh | 392 region= 534 region=$select_result 539 region = substr(ARGV[2], 2) 544 if (f[nf] == region) 548 ' ="$distance_table" ="$region" 701 # If there's more than one region, ask the user which one. 706 region=$select_result 709 # Determine tz from country and region. 714 region = substr(ARGV[2], 2) 733 if ($1 ~ cc && ($4 == region || !regio [all...] |
/foundation/graphic/graphic_surface/surface/test/unittest/ |
H A D | native_window_test.cpp | 640 struct Region *region = new Region(); in HWTEST_F() local 646 region->rects = rect; in HWTEST_F() 647 ret = OH_NativeWindow_NativeWindowFlushBuffer(nativeWindowTmp, nativeWindowBuffer, fenceFd, *region); in HWTEST_F() 764 struct Region *region = new Region(); in HWTEST_F() local 770 region->rects = rect; in HWTEST_F() 771 ret = OH_NativeWindow_NativeWindowFlushBuffer(nativeWindowTmp, nativeWindowBuffer, fenceFd, *region); in HWTEST_F() 974 struct Region *region = new Region(); in HWTEST_F() local 980 region->rects = rect; in HWTEST_F() 982 ASSERT_EQ(OH_NativeWindow_NativeWindowFlushBuffer(nullptr, nullptr, fenceFd, *region), in HWTEST_F() 984 delete region; in HWTEST_F() 998 struct Region *region = new Region(); HWTEST_F() local 1022 struct Region *region = new Region(); HWTEST_F() local 1076 struct Region *region = new Region(); HWTEST_F() local 1125 struct Region *region = new Region(); HWTEST_F() local 1935 struct Region *region = new Region(); HWTEST_F() local 2080 Region region; HWTEST_F() local [all...] |
/third_party/node/deps/icu-small/source/i18n/ |
H A D | zonemeta.cpp | 450 const char16_t *region = TimeZone::getRegion(tzid); in getCanonicalCountry() local 451 if (region != nullptr && u_strcmp(gWorld, region) != 0) { in getCanonicalCountry() 452 country.setTo(region, -1); in getCanonicalCountry() 473 singleZone = cached = gSingleZoneCountries->contains((void*)region); in getCanonicalCountry() 475 cached = gMultiZonesCountries->contains((void*)region); in getCanonicalCountry() 481 // We need to go through all zones associated with the region. in getCanonicalCountry() 484 U_ASSERT(u_strlen(region) == 2); in getCanonicalCountry() 486 u_UCharsToChars(region, regionBuf, 2); in getCanonicalCountry() 491 // only the single zone is available for the region in getCanonicalCountry() 731 getZoneIdByMetazone(const UnicodeString &mzid, const UnicodeString ®ion, UnicodeString &result) getZoneIdByMetazone() argument [all...] |
/third_party/icu/icu4c/source/i18n/ |
H A D | zonemeta.cpp | 420 const UChar *region = TimeZone::getRegion(tzid); in getCanonicalCountry() local 421 if (region != NULL && u_strcmp(gWorld, region) != 0) { in getCanonicalCountry() 422 country.setTo(region, -1); in getCanonicalCountry() 443 singleZone = cached = gSingleZoneCountries->contains((void*)region); in getCanonicalCountry() 445 cached = gMultiZonesCountries->contains((void*)region); in getCanonicalCountry() 451 // We need to go through all zones associated with the region. in getCanonicalCountry() 454 U_ASSERT(u_strlen(region) == 2); in getCanonicalCountry() 456 u_UCharsToChars(region, regionBuf, 2); in getCanonicalCountry() 461 // only the single zone is available for the region in getCanonicalCountry() 701 getZoneIdByMetazone(const UnicodeString &mzid, const UnicodeString ®ion, UnicodeString &result) getZoneIdByMetazone() argument [all...] |
/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | zonemeta.cpp | 428 const UChar *region = TimeZone::getRegion(tzid); in getCanonicalCountry() local 429 if (region != NULL && u_strcmp(gWorld, region) != 0) { in getCanonicalCountry() 430 country.setTo(region, -1); in getCanonicalCountry() 451 singleZone = cached = gSingleZoneCountries->contains((void*)region); in getCanonicalCountry() 453 cached = gMultiZonesCountries->contains((void*)region); in getCanonicalCountry() 459 // We need to go through all zones associated with the region. in getCanonicalCountry() 462 U_ASSERT(u_strlen(region) == 2); in getCanonicalCountry() 464 u_UCharsToChars(region, regionBuf, 2); in getCanonicalCountry() 469 // only the single zone is available for the region in getCanonicalCountry() 718 getZoneIdByMetazone(const UnicodeString &mzid, const UnicodeString ®ion, UnicodeString &result) getZoneIdByMetazone() argument [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/ |
H A D | low_level_alloc.cc | 78 // Size of entire region, including this field. Must be 294 ~ArenaLock() { ABSL_RAW_CHECK(left_, "haven't left Arena region"); } in ~ArenaLock() 309 bool left_ = false; // whether left region 393 AllocList *region = arena->freelist.next[0]; in DeleteArena() local 394 size_t size = region->header.size; in DeleteArena() 395 arena->freelist.next[0] = region->next[0]; in DeleteArena() 397 region->header.magic == Magic(kMagicUnallocated, ®ion->header), in DeleteArena() 399 ABSL_RAW_CHECK(region->header.arena == arena, in DeleteArena() 403 ABSL_RAW_CHECK(reinterpret_cast<uintptr_t>(region) in DeleteArena() [all...] |
/foundation/graphic/graphic_2d/rosen/samples/hello_native_window/ |
H A D | hello_native_window.cpp | 103 struct Region *region = new Region(); in main() local 109 region->rects = rect; in main() 110 region->rectNumber = 1; in main() 112 ret = OH_NativeWindow_NativeWindowFlushBuffer(nativeWindow, nativeWindowBuffer, fenceFd, *region); in main() 116 delete region; in main()
|
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/python/ohos/global/i18n/ |
H A D | generate_dat.py | 143 region = '' 146 region = locale_parts[2] 148 region = locale_parts[1] 149 if region != '': 150 mask = mask | (ord(region[0]) - char_off) << region_first_begin | (ord(region[1]) - char_off)
|
/foundation/window/window_manager/utils/include/ |
H A D | wm_occlusion_region.h | 154 Region(const Region& region) : rects_(region.rects_), bound_(region.bound_) {} in Region() argument 155 Region& operator=(const Region& region) in operator =() argument 157 rects_ = region.rects_; in operator =() 158 bound_ = region.bound_; in operator =() 228 /* core Region logic operation function, the return region's rects is guaranteed no-intersection 233 // bound of all region rects 236 // return merge region 238 // return intersection region [all...] |
/third_party/skia/gm/ |
H A D | imagealphathreshold.cpp | 49 SkRegion region; in create_filter_paint() local 50 region.setRects(rects, 2); in create_filter_paint() 55 SkImageFilters::AlphaThreshold(region, 0.2f, 0.7f, std::move(offset), cropRect)); in create_filter_paint() 198 SkRegion region; in DEF_SIMPLE_GM_BG() local 199 region.setRects(rects, 2); in DEF_SIMPLE_GM_BG() 203 filterPaint.setImageFilter(SkImageFilters::AlphaThreshold(region, 0.2f, 0.7f, in DEF_SIMPLE_GM_BG()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
H A D | CommandBufferVk.cpp | 74 VkImageCopy region; in ComputeImageCopyRegion() local 75 region.srcSubresource.aspectMask = VulkanAspectMask(aspect); in ComputeImageCopyRegion() 76 region.srcSubresource.mipLevel = srcCopy.mipLevel; in ComputeImageCopyRegion() 77 region.dstSubresource.aspectMask = VulkanAspectMask(aspect); in ComputeImageCopyRegion() 78 region.dstSubresource.mipLevel = dstCopy.mipLevel; in ComputeImageCopyRegion() 82 region.srcOffset.x = srcCopy.origin.x; in ComputeImageCopyRegion() 83 region.srcOffset.y = srcCopy.origin.y; in ComputeImageCopyRegion() 86 region.srcSubresource.baseArrayLayer = srcCopy.origin.z; in ComputeImageCopyRegion() 87 region.srcSubresource.layerCount = copySize.depthOrArrayLayers; in ComputeImageCopyRegion() 88 region in ComputeImageCopyRegion() 540 VkBufferCopy region; RecordCommands() local 563 VkBufferImageCopy region = RecordCommands() local 607 VkBufferImageCopy region = RecordCommands() local 694 VkImageCopy region = RecordCommands() local [all...] |
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/ |
H A D | PhoneNumberMatcherTest.java | 185 // Null is also allowed for the region code in these cases. in testFindNumbersWithPlusWithNoRegion() 401 String region = RegionCode.US; in testMatchesMultiplePhoneNumbersSeparatedByPhoneNumberPunctuation() 404 number1.setCountryCode(phoneUtil.getCountryCodeForRegion(region)); in testMatchesMultiplePhoneNumbersSeparatedByPhoneNumberPunctuation() 409 number2.setCountryCode(phoneUtil.getCountryCodeForRegion(region)); in testMatchesMultiplePhoneNumbersSeparatedByPhoneNumberPunctuation() 413 Iterator<PhoneNumberMatch> matches = phoneUtil.findNumbers(text, region).iterator(); in testMatchesMultiplePhoneNumbersSeparatedByPhoneNumberPunctuation() 421 String region = RegionCode.US; in testDoesNotMatchMultiplePhoneNumbersSeparatedWithNoWhiteSpace() 423 assertTrue(hasNoMatches(phoneUtil.findNumbers(text, region))); in testDoesNotMatchMultiplePhoneNumbersSeparatedWithNoWhiteSpace() 608 findNumbersForLeniency(test.rawString, test.region, leniency); in doTestNumberMatchesForLeniency() 629 findNumbersForLeniency(test.rawString, test.region, leniency); in doTestNumberNonMatchesForLeniency() 647 boolean isPossible, String region, Strin in findMatchesInContexts() 646 findMatchesInContexts(List<NumberContext> contexts, boolean isValid, boolean isPossible, String region, String number) findMatchesInContexts() argument 918 assertMatchProperties( PhoneNumberMatch match, String text, String number, String region) assertMatchProperties() argument 1083 final String region; global() field in PhoneNumberMatcherTest.NumberTest [all...] |
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fVertexTextureTests.cpp | 429 static void setPixelColors (const vector<Vec4>& quadColors, const Rect& region, const PosTexCoordQuadGrid<TexType>& grid, tcu::Surface& dst) in setPixelColors() argument 438 const int ix0 = deCeilFloatToInt32(ldru.x() * (float)region.w - 0.5f); in setPixelColors() 439 const int ix1 = deCeilFloatToInt32(ldru.z() * (float)region.w - 0.5f); in setPixelColors() 440 const int iy0 = deCeilFloatToInt32(ldru.y() * (float)region.h - 0.5f); in setPixelColors() 441 const int iy1 = deCeilFloatToInt32(ldru.w() * (float)region.h - 0.5f); in setPixelColors() 446 DE_ASSERT(deInBounds32(ix + region.x, 0, dst.getWidth())); in setPixelColors() 447 DE_ASSERT(deInBounds32(iy + region.y, 0, dst.getHeight())); in setPixelColors() 449 dst.setPixel(ix + region.x, iy + region.y, tcu::RGBA(color)); in setPixelColors() 689 const Rect region; in iterate() member 1024 const Rect region; iterate() member 1365 const Rect region; iterate() member 1708 const Rect region; iterate() member [all...] |
/base/global/i18n_lite/interfaces/kits/i18n/include/ |
H A D | locale_info.h | 32 * @brief Declares functions for obtaining locale information, including language, script, and country/region.
55 * script, and country/region.
59 * @param region Indicates the pointer to the specified country/region.
63 LocaleInfo(const char *lang, const char *script, const char *region);
66 * @brief A constructor used to create a <b>LocaleInfo</b> instance with specified language and country/region.
69 * @param region Indicates the pointer to the specified country/region.
73 LocaleInfo(const char *lang, const char *region);
122 * script, and country/region 206 char *region = nullptr; global() member in OHOS::I18N::LocaleInfo [all...] |
/base/global/i18n/interfaces/native/inner_api/zone/include/ |
H A D | zone_util.h | 73 * @brief Get the default timezone for the given region code
75 * @param number Indicating the region code, for example 86 can
77 * @return Returns the default timezone name if the region code is valid, otherwise
93 * @brief Get the default timezone name for the given region code
95 * @param number Indicating the region code, for example 86 can
123 * @param region Indicating the country code
127 CountryResult LookupTimezoneByCountryAndNITZ(std::string ®ion, NITZData &nitzData);
140 * @param region Indicating the country code
144 CountryResult LookupTimezoneByCountry(std::string ®ion, int64_t currentMillis);
158 void GetCountryZones(std::string ®ion, st [all...] |
/third_party/mesa3d/src/gallium/frontends/clover/core/ |
H A D | resource.hpp | 50 void copy(command_queue &q, const vector &origin, const vector ®ion, 53 void clear(command_queue &q, const vector &origin, const vector ®ion, 57 const vector &origin, const vector ®ion); 116 const resource::vector ®ion);
|