reference/intl/intlchar/isxdigit.xml
e20e74073379710a4f6316734c42996c8fbf9beb
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="intlchar.isxdigit" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>IntlChar::isxdigit</refname>
...
...
@@ -9,9 +8,9 @@
9
8

10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
-
<methodsynopsis>
13
-
<modifier>public</modifier> <modifier>static</modifier> <type>bool</type><methodname>IntlChar::isxdigit</methodname>
14
-
<methodparam><type>mixed</type><parameter>codepoint</parameter></methodparam>
11
+
<methodsynopsis role="IntlChar">
12
+
<modifier>public</modifier> <modifier>static</modifier> <type class="union"><type>bool</type><type>null</type></type><methodname>IntlChar::isxdigit</methodname>
13
+
<methodparam><type class="union"><type>int</type><type>string</type></type><parameter>codepoint</parameter></methodparam>
15
14
</methodsynopsis>
16
15
<para>
17
16
Determines whether the specified code point is a hexadecimal digit.
...
...
@@ -22,7 +21,7 @@
22
21
(That is, for letters with code points 0041..0046, 0061..0066, FF21..FF26, FF41..FF46.)
23
22
</para>
24
23
<para>
25
-
This is equivalent to <literal>IntlChar::digit($codepoint, 16) >= 0</literal>.
24
+
This is equivalent to <literal>IntlChar::digit($codepoint, 16) &gt;= 0</literal>.
26
25
</para>
27
26
</refsect1>
28
27

...
...
@@ -42,26 +41,10 @@
42
41
&reftitle.returnvalues;
43
42
<para>
44
43
Returns &true; if
45
-
<parameter>codepoint</parameter> is a hexadecimal character, &false; if not.
44
+
<parameter>codepoint</parameter> is a hexadecimal character, &false; if not. Returns &null; on failure.
46
45
</para>
47
46
</refsect1>
48
47

49
-
<refsect1 role="notes">
50
-
&reftitle.notes;
51
-
<note>
52
-
<para>
53
-
In order to narrow the definition of hexadecimal digits to only ASCII characters use:
54
-
</para>
55
-
<programlisting role="php">
56
-
<![CDATA[
57
-
<?php
58
-
$isASCIIHexadecimal = IntlChar::ord($codepoint) <= 0x7F && IntlChar::isxdigit($codepoint);
59
-
?>
60
-
]]>
61
-
</programlisting>
62
-
</note>
63
-
</refsect1>
64
-

65
48
<refsect1 role="examples">
66
49
&reftitle.examples;
67
50
<example>
...
...
@@ -86,17 +69,33 @@ bool(false)
86
69
</example>
87
70
</refsect1>
88
71

72
+
<refsect1 role="notes">
73
+
&reftitle.notes;
74
+
<note>
75
+
<para>
76
+
In order to narrow the definition of hexadecimal digits to only ASCII characters use:
77
+
</para>
78
+
<programlisting role="php">
79
+
<![CDATA[
80
+
<?php
81
+
$isASCIIHexadecimal = IntlChar::ord($codepoint) <= 0x7F && IntlChar::isxdigit($codepoint);
82
+
?>
83
+
]]>
84
+
</programlisting>
85
+
</note>
86
+
</refsect1>
87
+

89
88
<refsect1 role="seealso">
90
89
&reftitle.seealso;
91
90
<para>
92
91
<simplelist>
93
92
<member><function>IntlChar::isdigit</function></member>
93
+
<member><function>ctype_xdigit</function></member>
94
94
</simplelist>
95
95
</para>
96
96
</refsect1>
97
97

98
98
</refentry>
99
-

100
99
<!-- Keep this comment at the end of the file
101
100
Local variables:
102
101
mode: sgml
103
102