harmony 鸿蒙ICU4C

  • 2025-06-12
  • 浏览 (3)

ICU4C

In today’s software market, applications need to support multiple languages for efficient development and maintenance. The International Components for Unicode (ICU) library provides powerful and complete multilingual cultural information processing capability to address this demand.

ICU4C is the C language version of the ICU library. Some APIs have been opened and support the following capabilities:

  • Locale and culture division (uloc.h)
  • Date and time formatting (udat.h)
  • Number formatting and weights and measures formatting (unumberformatter.h and unum.h)
  • Calendar and local calendar (ucal.h)
  • Sorting (ucol.h)
  • Line wrapping (ubrk.h)
  • Text normalization (unorm2.h)
  • Transliteration (utrans.h)
  • Character/text attribute setting (uchar.h and uscript.h)
  • Code conversion (ucnv.h)
  • Bidirectional text processing (ubidi.h)
  • Domain name conversion (uidna.h)
  • Unicode string processing (ustring.h)
  • ICU text abstract representation (utext.h)

Introducing ICU4C Internationalization Capabilities

If you need to use ICU4C internationalization capabilities, add the corresponding header file as required. Add the unicode directory prefix to the header file of this module. For example:

#include <unicode/uloc.h>

Add the following dynamic library to CMakeList.txt:

libicu.so

Symbols Exported from the Standard Library

ICU4C Symbols Exported from Native APIs

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Native API Standard Libraries

harmony 鸿蒙VkExternalFormatOHOS

harmony 鸿蒙VkImportNativeBufferInfoOHOS

harmony 鸿蒙VkMemoryGetNativeBufferInfoOHOS

harmony 鸿蒙VkNativeBufferFormatPropertiesOHOS

harmony 鸿蒙VkNativeBufferPropertiesOHOS

harmony 鸿蒙VkNativeBufferUsageOHOS

harmony 鸿蒙VkSurfaceCreateInfoOHOS

harmony 鸿蒙Vulkan Module

harmony 鸿蒙libc++

0  赞