File: book.xml

package info (click to toggle)
php-doc 20100521-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 59,992 kB
  • ctags: 4,085
  • sloc: xml: 796,833; php: 21,338; cpp: 500; sh: 117; makefile: 58; awk: 28
file content (75 lines) | stat: -rw-r--r-- 2,759 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 288721 $ -->
<!-- Purpose: international -->
<!-- Membership: bundled --> 

<book xml:id="book.mbstring" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>Multibyte String</title> 
 
 <!-- {{{ preface -->
 <preface xml:id="intro.mbstring">
  &reftitle.intro;
  <para>
   While there are many languages in which every necessary character can
   be represented by a one-to-one mapping to an 8-bit value, there are also
   several languages which require so many characters for written
   communication that they cannot be contained within the range a mere byte 
   can code (A byte is made up of eight bits. Each bit can contain only two 
   distinct values, one or zero. Because of this, a byte can only represent 
   256 unique values (two to the power of eight)). Multibyte character 
   encoding schemes were developed to express more than 256 characters 
   in the regular bytewise coding system.
  </para>
  <para>
   When you manipulate (trim, split, splice, etc.) strings encoded in a
   multibyte encoding, you need to use special functions since two or more
   consecutive bytes may represent a single character in such encoding
   schemes. Otherwise, if you apply a non-multibyte-aware string function
   to the string, it probably fails to detect the beginning or ending of
   the multibyte character and ends up with a corrupted garbage string that
   most likely loses its original meaning.
  </para>
  <para>
   <literal>mbstring</literal> provides multibyte specific string functions 
   that help you deal with multibyte encodings in PHP. In addition to that, 
   <literal>mbstring</literal> handles character encoding conversion between 
   the possible encoding pairs. <literal>mbstring</literal> is designed to 
   handle Unicode-based encodings such as UTF-8 and UCS-2 and many 
   single-byte encodings for convenience (listed below).
  </para>
 </preface>
 <!-- }}} -->
 
 &reference.mbstring.setup;
 &reference.mbstring.constants;
 &reference.mbstring.encodings;
 &reference.mbstring.ja-basic;
 &reference.mbstring.http-inout;
 &reference.mbstring.supported-encodings;
 &reference.mbstring.overloading;
 &reference.mbstring.encoding-requirements;
 &reference.mbstring.reference;

</book>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->