博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
libunistring-0.9.9
阅读量:6533 次
发布时间:2019-06-24

本文共 2023 字,大约阅读时间需要 6 分钟。

Introduction to libunistring

Text files are nowadays usually encoded in Unicode, and may consist of very different scripts – from Latin letters to Chinese Hanzi –, with many kinds of special characters – accents, right-to-left writing marks, hyphens, Roman numbers, and much more. But the POSIX platform APIs for text do not contain adequate functions for dealing with particular properties of many Unicode characters. In fact, the POSIX APIs for text have several assumptions at their base which don't hold for Unicode text.

This library provides functions for manipulating Unicode strings and for manipulating C strings according to the Unicode standard.

Details

This library consists of the following parts:

<unistr.h>   elementary string functions
<uniconv.h>   conversion from/to legacy encodings
<unistdio.h>   formatted output to strings
<uniname.h>   character names
<unictype.h>   character classification and properties
<uniwidth.h>   string width when using nonproportional fonts
<uniwbrk.h>   word breaks
<unilbrk.h>   line breaking algorithm
<uninorm.h>   normalization (composition and decomposition)
<unicase.h>   case folding
<uniregex.h>   regular expressions (not yet implemented)

Who needs libunistring?

libunistring is for you if your application involves non-trivial text processing, such as upper/lower case conversions, line breaking, operations on words, or more advanced analysis of text. Text provided by the user can, in general, contain characters of all kinds of scripts. The text processing functions provided by this library handle all scripts and all languages.

libunistring is for you if your application already uses the ISO C / POSIX <ctype.h><wctype.h> functions and the text it operates on is provided by the user and can be in any language.

libunistring is also for you if your application uses Unicode strings as internal in-memory representation.

Documentation

The online manual is available at www.gnu.org/software/libunistring/manual/libunistring.html

转载于:https://www.cnblogs.com/nlsoft/p/9033475.html

你可能感兴趣的文章
nginx+nagios在ubuntu下搭建过程全程指导
查看>>
Hive基本操作
查看>>
编译并导入OpenSSL
查看>>
(NO.00004)iOS实现打砖块游戏(九):游戏中小球与反弹棒的碰撞
查看>>
You must use the Role Management Tool to install or configure Microsoft .NET Framework 3.5 SP1
查看>>
利用新浪微博API的Search接口做微博锐推榜
查看>>
蓝桥杯-基础练习12 十六进制转八进制
查看>>
Scalaz(14)- Monad:函数组合-Kleisli to Reader
查看>>
验证信息
查看>>
XUL 用户界面语言介绍
查看>>
内核定时器的简单应用
查看>>
nagios 主机状态
查看>>
云栖问答送的淘公仔收到啦
查看>>
线程眼中的线性地址空间
查看>>
本地jar安装到maven仓库 和 ivy仓库方法
查看>>
RTOS姊妹花——Small RTOS与STOS++简介
查看>>
Ubuntu下安装 ROR 环境以及 passenger+nginx 配置
查看>>
我的友情链接
查看>>
echarts简单使用
查看>>
【编译打包】curl-loader.el6
查看>>