亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
日韩精品三区四区| aaa国产一区| 久久精品国产精品亚洲综合| 亚洲欧洲另类国产综合| 91精品国产全国免费观看| 色香蕉成人二区免费| 成人短视频下载| 国产成人午夜电影网| 美女爽到高潮91| 另类中文字幕网| 日本亚洲电影天堂| 蜜臀久久99精品久久久画质超高清| 一区二区三区成人| 中文字幕一区二区三区不卡| 久久久不卡网国产精品二区| 91麻豆精品国产91久久久久| 欧美在线免费观看亚洲| 91网站黄www| 91色porny| 色噜噜夜夜夜综合网| 91麻豆自制传媒国产之光| 成人一二三区视频| 成人app在线| 一本色道久久综合亚洲91| 99久久er热在这里只有精品66| 成人精品国产福利| 99re热这里只有精品视频| 成人永久看片免费视频天堂| 国产精品99久久久久久似苏梦涵| 韩国毛片一区二区三区| 国产激情偷乱视频一区二区三区| 国产成人在线看| 99r国产精品| 欧美日韩黄色影视| 精品日韩在线一区| 国产精品免费视频网站| 亚洲乱码国产乱码精品精98午夜 | 在线播放91灌醉迷j高跟美女| 欧美丰满少妇xxxxx高潮对白| 欧美一区三区四区| 久久精品免视看| 亚洲免费色视频| 日韩高清不卡一区| 福利一区二区在线| 在线视频综合导航| 精品国产91久久久久久久妲己| 国产人成亚洲第一网站在线播放| 亚洲欧美日韩国产综合在线 | 欧美国产精品一区二区三区| 亚洲自拍偷拍av| 国精产品一区一区三区mba视频| 99久久精品国产一区二区三区| 欧美性videosxxxxx| 久久久蜜桃精品| 日韩国产欧美三级| 成人国产精品免费观看| 91精品欧美福利在线观看| 中文幕一区二区三区久久蜜桃| 亚洲h精品动漫在线观看| 国产成人精品亚洲日本在线桃色| 欧美在线观看视频一区二区三区| 久久久www成人免费无遮挡大片| 亚洲国产视频一区二区| 91免费在线视频观看| 国产亚洲午夜高清国产拍精品| 亚洲午夜免费视频| 91麻豆高清视频| 婷婷六月综合网| aaa欧美日韩| 国产精品入口麻豆九色| 国产又黄又大久久| 精品久久久久久久久久久久包黑料 | 国产精品99久久久久久有的能看 | 理论电影国产精品| 91精品在线一区二区| 亚洲一区二区在线视频| 色综合色狠狠天天综合色| 欧美激情一二三区| 国产成人综合在线| 国产日本一区二区| 高清不卡一区二区在线| 国产精品全国免费观看高清 | 久久精品国产精品青草| 欧美不卡一区二区三区| 日韩电影免费在线看| 日韩免费视频线观看| 国产精一区二区三区| 国产日韩欧美高清在线| 不卡一区二区中文字幕| 亚洲黄网站在线观看| 欧美三级电影在线观看| 日韩影视精彩在线| 精品一区二区免费在线观看| 久久综合99re88久久爱| 成人毛片视频在线观看| 亚洲一区二区五区| 日韩欧美一区二区三区在线| 国产精品一区在线观看乱码| 国产精品久久三| 欧美日韩久久一区二区| 久久99久久久欧美国产| 国产精品理论片在线观看| 欧美欧美午夜aⅴ在线观看| 久久99最新地址| 一区二区三区四区国产精品| 在线播放国产精品二区一二区四区| 久久99精品国产麻豆婷婷| 亚洲视频一区二区免费在线观看| 在线观看区一区二| 精品一区二区三区不卡| 亚洲人成网站精品片在线观看 | www.欧美精品一二区| 天堂蜜桃91精品| 中文字幕在线播放不卡一区| 欧美日韩不卡一区二区| 国产69精品久久777的优势| 日本视频一区二区| 日韩写真欧美这视频| 午夜精品一区在线观看| 亚洲天堂网中文字| 国产精品国模大尺度视频| 26uuu国产一区二区三区| 在线亚洲一区观看| 国产成人av电影免费在线观看| 五月天国产精品| 亚洲视频免费观看| 国产午夜亚洲精品午夜鲁丝片| 欧美精品国产精品| 欧美性大战xxxxx久久久| 高清国产一区二区三区| 日韩精品五月天| 亚洲网友自拍偷拍| 成人免费在线观看入口| 欧美r级电影在线观看| 欧美精品一二三| 欧美精品视频www在线观看| 在线日韩av片| 91美女精品福利| 972aa.com艺术欧美| 风间由美性色一区二区三区| 狠狠色丁香久久婷婷综合丁香| 午夜a成v人精品| 日本欧美肥老太交大片| 午夜影院在线观看欧美| 亚洲麻豆国产自偷在线| 国产精品入口麻豆九色| 国产精品乱人伦中文| 一区在线播放视频| 中文字幕在线观看一区| 国产精品天干天干在线综合| 欧美三级三级三级爽爽爽| 日本电影欧美片| 欧美一级在线观看| 成人免费在线观看入口| 日本成人中文字幕在线视频| 久久精品国产网站| 国产成人在线影院| 91在线视频播放地址| 欧美日韩一区三区四区| 日韩精品一区二区在线| 久久精品亚洲麻豆av一区二区 | 亚洲欧美怡红院| 亚洲五码中文字幕| 日本91福利区| 国产在线一区二区综合免费视频| 粉嫩一区二区三区性色av| 91在线观看成人| 欧美一卡在线观看| 亚洲欧洲中文日韩久久av乱码| 日韩精品色哟哟| www.日韩在线| 日韩一区二区三区视频在线观看 | 国产精品久久久久久久久果冻传媒| 最新国产精品久久精品| 男人的天堂亚洲一区| 成人av免费观看| 制服.丝袜.亚洲.另类.中文 | 粉嫩久久99精品久久久久久夜| 欧美猛男gaygay网站| √…a在线天堂一区| 国内精品伊人久久久久av一坑| 欧美午夜免费电影| 一区二区三区在线播放| 91一区在线观看| 中文字幕一区二区三区在线播放 | eeuss鲁片一区二区三区 | 亚洲国产日韩一级| 成人视屏免费看| 日韩亚洲欧美在线| 亚洲亚洲精品在线观看| 成人动漫中文字幕| 国产日韩精品一区| 国产制服丝袜一区| 欧美日韩国产美| 亚洲黄色录像片| 不卡一区二区中文字幕| 久久老女人爱爱| 黄页网站大全一区二区| 91精品国产综合久久福利软件| 亚洲一区二区三区四区在线|