亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? library_6.html

?? Glibc的中文手冊
?? HTML
?? 第 1 頁 / 共 3 頁
字號:
<!-- This HTML file has been created by texi2html 1.27
     from library.texinfo on 3 March 1994 -->

<TITLE>The GNU C Library - Extended Characters</TITLE>
<P>Go to the <A HREF="library_5.html" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_5.html">previous</A>, <A HREF="library_7.html" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_7.html">next</A> section.<P>
<H1><A NAME="SEC66" HREF="library_toc.html#SEC66" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC66">Extended Characters</A></H1>
<P>
A number of languages use character sets that are larger than the range
of values of type <CODE>char</CODE>.  Japanese and Chinese are probably the
most familiar examples.
<P>
The GNU C library includes support for two mechanisms for dealing with
extended character sets: multibyte characters and wide characters.  This
chapter describes how to use these mechanisms, and the functions for
converting between them.
<A NAME="IDX330"></A>
<P>
The behavior of the functions in this chapter is affected by the current
locale for character classification--the <CODE>LC_CTYPE</CODE> category; see
section <A HREF="library_7.html#SEC79" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_7.html#SEC79">Categories of Activities that Locales Affect</A>.  This choice of locale selects which multibyte
code is used, and also controls the meanings and characteristics of wide
character codes.
<P>
<H2><A NAME="SEC67" HREF="library_toc.html#SEC67" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC67">Introduction to Extended Characters</A></H2>
<P>
You can represent extended characters in either of two ways:
<P>
<UL>
<LI>
As <DFN>Multibyte characters</DFN> which can be embedded in an ordinary
string, an array of <CODE>char</CODE> objects.  Their advantage is that many
programs and operating systems can handle occasional multibyte
characters scattered among ordinary ASCII characters, without any
change.
<P>
<A NAME="IDX331"></A>
<LI>
As <DFN>wide characters</DFN>, which are like ordinary characters except that
they occupy more bits.  The wide character data type, <CODE>wchar_t</CODE>,
has a range large enough to hold extended character codes as well as
old-fashioned ASCII codes.
<P>
An advantage of wide characters is that each character is a single data
object, just like ordinary ASCII characters.  There are a few
disadvantages:
<P>
<UL>
<LI>
Each existing program must be modified and recompiled to make it use
wide characters.
<P>
<LI>
Files of wide characters cannot be read by programs that expect ordinary
characters.
</UL>
</UL>
<P>
Typically, you use the multibyte character representation as part of the
external program interface, such as reading or writing text to files.
However, it's usually easier to perform internal manipulations on
strings containing extended characters on arrays of <CODE>wchar_t</CODE>
objects, since the uniform representation makes most editing operations
easier.  If you do use multibyte characters for files and wide
characters for internal operations, you need to convert between them
when you read and write data.
<P>
If your system supports extended characters, then it supports them both
as multibyte characters and as wide characters.  The library includes
functions you can use to convert between the two representations.
These functions are described in this chapter.
<P>
<H2><A NAME="SEC68" HREF="library_toc.html#SEC68" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC68">Locales and Extended Characters</A></H2>
<P>
A computer system can support more than one multibyte character code,
and more than one wide character code.  The user controls the choice of
codes through the current locale for character classification
(see section <A HREF="library_7.html#SEC76" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_7.html#SEC76">Locales and Internationalization</A>).  Each locale specifies a particular multibyte
character code and a particular wide character code.  The choice of locale
influences the behavior of the conversion functions in the library.
<P>
Some locales support neither wide characters nor nontrivial multibyte
characters.  In these locales, the library conversion functions still
work, even though what they do is basically trivial.
<P>
If you select a new locale for character classification, the internal
shift state maintained by these functions can become confused, so it's
not a good idea to change the locale while you are in the middle of
processing a string.
<P>
<A NAME="IDX332"></A>
<H2><A NAME="SEC69" HREF="library_toc.html#SEC69" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC69">Multibyte Characters</A></H2>
<P>
In the ordinary ASCII code, a sequence of characters is a sequence of
bytes, and each character is one byte.  This is very simple, but
allows for only 256 distinct characters.
<P>
In a <DFN>multibyte character code</DFN>, a sequence of characters is a
sequence of bytes, but each character may occupy one or more consecutive
bytes of the sequence.
<A NAME="IDX333"></A>
<P>
There are many different ways of designing a multibyte character code;
different systems use different codes.  To specify a particular code
means designating the <DFN>basic</DFN> byte sequences--those which represent
a single character--and what characters they stand for.  A code that a
computer can actually use must have a finite number of these basic
sequences, and typically none of them is more than a few characters
long.
<P>
These sequences need not all have the same length.  In fact, many of
them are just one byte long.  Because the basic ASCII characters in the
range from <CODE>0</CODE> to <CODE>0177</CODE> are so important, they stand for
themselves in all multibyte character codes.  That is to say, a byte
whose value is <CODE>0</CODE> through <CODE>0177</CODE> is always a character in
itself.  The characters which are more than one byte must always start
with a byte in the range from <CODE>0200</CODE> through <CODE>0377</CODE>.
<P>
The byte value <CODE>0</CODE> can be used to terminated a string, just as it
is often used in a string of ASCII characters.
<P>
Specifying the basic byte sequences that represent single characters
automatically gives meanings to many longer byte sequences, as more than
one character.  For example, if the two byte sequence <CODE>0205 049</CODE>
stands for the Greek letter alpha, then <CODE>0205 049 065</CODE> must stand
for an alpha followed by an <SAMP>`A'</SAMP> (ASCII code 065), and <CODE>0205 049
0205 049</CODE> must stand for two alphas in a row.
<P>
If any byte sequence can have more than one meaning as a sequence of
characters, then the multibyte code is ambiguous--and no good.  The
codes that systems actually use are all unambiguous.
<P>
In most codes, there are certain sequences of bytes that have no meaning
as a character or characters.  These are called <DFN>invalid</DFN>.
<P>
The simplest possible multibyte code is a trivial one:
<P>
<BLOCKQUOTE>
The basic sequences consist of single bytes.
</BLOCKQUOTE>
<P>
This particular code is equivalent to not using multibyte characters at
all.  It has no invalid sequences.  But it can handle only 256 different
characters.
<P>
Here is another possible code which can handle 9376 different
characters:
<P>
<BLOCKQUOTE>
The basic sequences consist of
<P>
<UL>
<LI>
single bytes with values in the range <CODE>0</CODE> through <CODE>0237</CODE>.
<P>
<LI>
two-byte sequences, in which both of the bytes have values in the range
from <CODE>0240</CODE> through <CODE>0377</CODE>.
</UL>
</BLOCKQUOTE>
<P>
This code or a similar one is used on some systems to represent Japanese
characters.  The invalid sequences are those which consist of an odd
number of consecutive bytes in the range from <CODE>0240</CODE> through
<CODE>0377</CODE>.
<P>
Here is another multibyte code which can handle more distinct extended
characters--in fact, almost thirty million:
<P>
<BLOCKQUOTE>
The basic sequences consist of
<P>
<UL>
<LI>
single bytes with values in the range <CODE>0</CODE> through <CODE>0177</CODE>.
<P>
<LI>
sequences of up to four bytes in which the first byte is in the range
from <CODE>0200</CODE> through <CODE>0237</CODE>, and the remaining bytes are in the
range from <CODE>0240</CODE> through <CODE>0377</CODE>.
</UL>
</BLOCKQUOTE>
<P>
In this code, any sequence that starts with a byte in the range
from <CODE>0240</CODE> through <CODE>0377</CODE> is invalid.
<P>
And here is another variant which has the advantage that removing the
last byte or bytes from a valid character can never produce another
valid character.  (This property is convenient when you want to search
strings for particular characters.)
<P>
<BLOCKQUOTE>
The basic sequences consist of
<P>
<UL>
<LI>
single bytes with values in the range <CODE>0</CODE> through <CODE>0177</CODE>.
<P>
<LI>
two-byte sequences in which the first byte is in the range from
<CODE>0200</CODE> through <CODE>0207</CODE>, and the second byte is in the range
from <CODE>0240</CODE> through <CODE>0377</CODE>.
<P>
<LI>
three-byte sequences in which the first byte is in the range from
<CODE>0210</CODE> through <CODE>0217</CODE>, and the other bytes are in the range
from <CODE>0240</CODE> through <CODE>0377</CODE>.
<P>
<LI>
four-byte sequences in which the first byte is in the range from
<CODE>0220</CODE> through <CODE>0227</CODE>, and the other bytes are in the range
from <CODE>0240</CODE> through <CODE>0377</CODE>.
</UL>
</BLOCKQUOTE>
<P>
The list of invalid sequences for this code is long and not worth
stating in full; examples of invalid sequences include <CODE>0240</CODE> and
<CODE>0220 0300 065</CODE>.
<P>
The number of <EM>possible</EM> multibyte codes is astronomical.  But a

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品欧美一区二区三区不卡| 亚洲综合色婷婷| 国产精品三级电影| 亚洲综合色成人| 丁香婷婷综合网| 欧美日韩免费一区二区三区| 一本色道a无线码一区v| 日韩欧美www| 亚洲精品大片www| 国产在线精品一区二区不卡了| 91污片在线观看| 日韩欧美电影一二三| 亚洲图片欧美视频| 不卡av在线免费观看| 在线观看日韩av先锋影音电影院| 欧美激情一区在线| 久久激情五月婷婷| 欧美二区三区91| 亚洲欧美二区三区| 韩国在线一区二区| 精品电影一区二区三区 | 欧美麻豆精品久久久久久| 精品国产露脸精彩对白| 日韩不卡在线观看日韩不卡视频| 99久久婷婷国产| 日本一区二区视频在线观看| 一区二区三区成人| 成人av网址在线| 久久综合九色综合欧美就去吻| 日韩电影在线看| 欧美视频自拍偷拍| 亚洲三级久久久| 在线观看日韩电影| 亚洲你懂的在线视频| 91黄色在线观看| 亚洲另类在线一区| 99久久综合99久久综合网站| 亚洲人妖av一区二区| 国产成人精品影院| 91丝袜美女网| 91精品国产aⅴ一区二区| 亚洲国产wwwccc36天堂| 亚洲国产日韩一区二区| 精品国产一二三| 色av成人天堂桃色av| 久久99精品国产.久久久久| 国产精品久久久久一区| 亚洲精品日韩综合观看成人91| 国产一区二区中文字幕| 日本一区二区高清| 国产精品996| 久久久久99精品国产片| 国产成人精品一区二区三区四区| 2023国产精品视频| 成人三级在线视频| 亚洲精品国久久99热| 欧美午夜精品一区| 韩国av一区二区三区四区| 日韩欧美国产一二三区| 国产成人亚洲综合a∨婷婷图片| 欧美国产日韩一二三区| 成人一区二区三区在线观看| 亚洲图片欧美综合| 日韩一级二级三级精品视频| 国产91丝袜在线观看| 日韩伦理av电影| 99久久国产免费看| 日日骚欧美日韩| 精品精品欲导航| 97se亚洲国产综合自在线| 亚洲码国产岛国毛片在线| 欧美亚洲一区二区在线| 国产在线看一区| 中文字幕日本不卡| 日韩欧美一级二级三级久久久| 国产麻豆9l精品三级站| 国产偷国产偷亚洲高清人白洁| 欧洲人成人精品| 狠狠狠色丁香婷婷综合久久五月| 一区二区三区产品免费精品久久75| 欧美日韩国产在线播放网站| 久久精品国产999大香线蕉| 国产精品美女久久久久久久久 | 最新久久zyz资源站| 欧美在线短视频| 久久黄色级2电影| 亚洲一区二区五区| 久久久美女毛片| 7777精品伊人久久久大香线蕉完整版 | 日本怡春院一区二区| 久久久久久9999| 一本久久精品一区二区| 美女脱光内衣内裤视频久久影院| 国产亚洲一二三区| 欧美一区二区三区成人| 国产乱人伦偷精品视频免下载| 亚洲国产美女搞黄色| 欧美国产日韩a欧美在线观看| 欧美午夜精品理论片a级按摩| 99vv1com这只有精品| 另类小说图片综合网| 日韩中文字幕一区二区三区| 国产精品国模大尺度视频| 91精品国产品国语在线不卡| 欧美在线视频全部完| 国产激情一区二区三区桃花岛亚洲| 日韩综合小视频| 亚洲一区av在线| 久久久精品国产免大香伊 | 久久亚洲影视婷婷| 8x8x8国产精品| 成人精品鲁一区一区二区| 免费成人深夜小野草| 亚洲成人综合网站| 亚洲成人自拍偷拍| 一区二区三区欧美| 一区av在线播放| 亚洲人成网站色在线观看| 国产欧美一区二区精品仙草咪| 精品蜜桃在线看| 欧美成人精品二区三区99精品| 精品毛片乱码1区2区3区| 精品国内片67194| 国产一区二区三区蝌蚪| 国产精品99久久久久久宅男| 岛国精品在线播放| 欧美一级国产精品| 成a人片亚洲日本久久| 奇米色一区二区| 日本免费新一区视频| 亚洲线精品一区二区三区| 日本网站在线观看一区二区三区| 污片在线观看一区二区| 精品一区二区三区香蕉蜜桃| 精品一二三四区| 99视频精品在线| 在线看日本不卡| 欧美日韩你懂得| 久久久久久99精品| 国产精品久久夜| 五月婷婷综合在线| 天天亚洲美女在线视频| 国产一区欧美日韩| 不卡在线视频中文字幕| 国产在线日韩欧美| 97久久人人超碰| 91久久人澡人人添人人爽欧美| 欧美二区乱c少妇| 欧美精品一区二区高清在线观看| 中文字幕乱码亚洲精品一区| 亚洲欧洲精品一区二区精品久久久| 中文字幕一区二区三区av| 午夜激情久久久| 国模娜娜一区二区三区| 91蜜桃视频在线| 欧美日韩久久久一区| 91麻豆精品国产91久久久资源速度| 国产亚洲va综合人人澡精品| 日韩美女精品在线| 国产美女一区二区三区| 99久久99久久综合| 欧美一区二区三区人| 久久久不卡网国产精品一区| 国产精品二三区| 久久精品99久久久| 91在线高清观看| 亚洲精品一区在线观看| 亚洲精选视频免费看| 极品美女销魂一区二区三区免费| k8久久久一区二区三区| 日本韩国一区二区三区视频| 久久九九全国免费| 亚洲综合免费观看高清完整版 | 国产一区91精品张津瑜| 色综合天天在线| 欧洲一区在线观看| 国产精品久久久久久久浪潮网站| 亚洲成人免费电影| 91丨porny丨户外露出| 91精品国产福利| 亚洲成av人在线观看| 成人污污视频在线观看| 欧美一区二区网站| 亚洲男同性视频| 国产精品主播直播| 精品国产百合女同互慰| 亚洲午夜精品17c| 色综合久久久久久久久久久| 久久综合给合久久狠狠狠97色69| 亚洲欧洲国产日韩| 国产精一区二区三区| 一本到一区二区三区| 亚洲色图欧洲色图| 国产不卡一区视频| 欧美激情中文字幕| 免费成人在线观看| 欧美电影免费观看高清完整版在 | 欧美二区三区的天堂| 五月天婷婷综合| 欧美亚洲另类激情小说|