Skip to content

Commit c81db62

Browse files
committed
Replace <literal> nodes with <constant> for constants
1 parent 95b8f4d commit c81db62

File tree

145 files changed

+243
-243
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+243
-243
lines changed

appendices/migration70/changed-functions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<listitem>
4747
<simpara>
4848
<function>setlocale</function> function no longer accepts <parameter>category</parameter>
49-
passed as string. <constant>LC_*</constant> constants must be used instead.
49+
passed as string. <constant>LC_<replaceable>*</replaceable></constant> constants must be used instead.
5050
</simpara>
5151
</listitem>
5252
<listitem>

appendices/migration70/incompatible/removed-functions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<function>mcrypt_cbc</function>, <function>mcrypt_cfb</function> and
4646
<function>mcrypt_ofb</function> functions have been removed in favour of
4747
using <function>mcrypt_decrypt</function> with the appropriate
48-
<constant>MCRYPT_MODE_*</constant> constant.
48+
<constant>MCRYPT_MODE_<replaceable>*</replaceable></constant> constant.
4949
</para>
5050
</sect3>
5151

appendices/migration70/other-changes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Project::new('Project Name')->private()->for('purpose here')->with('username her
3030
<para>
3131
The only limitation is that the <literal>class</literal> keyword still
3232
cannot be used as a constant name, otherwise it would conflict with the
33-
class name resolution syntax (<literal>ClassName::class</literal>).
33+
class name resolution syntax (<constant>ClassName::class</constant>).
3434
</para>
3535
</sect2>
3636

appendices/migration80/other-changes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
<methodname>ZipArchive::addEmptyDir</methodname>, <methodname>ZipArchive::addFile</methodname>
7474
and <methodname>ZipArchive::addFromString</methodname>
7575
methods have a new <parameter>flags</parameter> argument. This allows managing name encoding
76-
(<constant>ZipArchive::FL_ENC_*</constant>) and entry replacement
76+
(<constant>ZipArchive::FL_ENC_<replaceable>*</replaceable></constant>) and entry replacement
7777
(<constant>ZipArchive::FL_OVERWRITE</constant>).
7878
</para>
7979
</listitem>

language-snippets.ent

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ Passing untrusted data to this parameter is <emphasis>insecure</emphasis>, unles
12331233

12341234
<!ENTITY intl.locale-len.return '<para xmlns="http://docbook.org/ns/docbook">Returns &null; when the length of <parameter>locale</parameter> exceeds <constant>INTL_MAX_LOCALE_LEN</constant>.</para>'>
12351235

1236-
<!ENTITY intl.property.parameter '<para xmlns="http://docbook.org/ns/docbook">The Unicode property to lookup (see the <literal>IntlChar::PROPERTY_*</literal> constants).</para>'>
1236+
<!ENTITY intl.property.parameter '<para xmlns="http://docbook.org/ns/docbook">The Unicode property to lookup (see the <constant>IntlChar::PROPERTY_<replaceable>*</replaceable></constant> constants).</para>'>
12371237

12381238
<!ENTITY intl.property.example 'Testing different properties'>
12391239

@@ -1382,7 +1382,7 @@ encoding value will be used.</para>'>
13821382
<!ENTITY memcached.result.delete-multi '<para xmlns="http://docbook.org/ns/docbook">
13831383
Returns an array indexed by <parameter>keys</parameter>. Each element
13841384
is &true; if the corresponding key was deleted, or one of the
1385-
<constant>Memcached::RES_*</constant> constants if the corresponding deletion
1385+
<constant>Memcached::RES_<replaceable>*</replaceable></constant> constants if the corresponding deletion
13861386
failed.
13871387
</para>
13881388
<para xmlns="http://docbook.org/ns/docbook">
@@ -2076,7 +2076,7 @@ extensions in order to use these functions.</simpara>'>
20762076
<!-- APD Notes -->
20772077
<!ENTITY apd.debug-level.description '<varlistentry xmlns="http://docbook.org/ns/docbook"><term>
20782078
<parameter>debug_level</parameter></term><listitem><para>An integer which is formed by adding
2079-
together the <literal>XXX_TRACE</literal> constants.</para><para>It is not recommended
2079+
together the <constant><replaceable>*</replaceable>_TRACE</constant> constants.</para><para>It is not recommended
20802080
to use <constant>MEMORY_TRACE</constant>. It is very slow and does not appear to be accurate.
20812081
<constant>ASSIGNMENT_TRACE</constant> is not implemented yet.</para><para>To turn on all
20822082
functional traces (TIMING, FUNCTIONS, ARGS SUMMARY (like strace -c)) use the value 99</para>

language/enumerations.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ enum Suit
5151

5252
<para>
5353
This declaration creates a new enumerated type named <literal>Suit</literal>, which has
54-
four and only four legal values: <literal>Suit::Hearts</literal>, <literal>Suit::Diamonds</literal>,
55-
<literal>Suit::Clubs</literal>, and <literal>Suit::Spades</literal>. Variables may be assigned
54+
four and only four legal values: <constant>Suit::Hearts</constant>, <constant>Suit::Diamonds</constant>,
55+
<constant>Suit::Clubs</constant>, and <constant>Suit::Spades</constant>. Variables may be assigned
5656
to one of those legal values. A function may be type checked against an enumerated type,
5757
in which case only values of that type may be passed.
5858
</para>
@@ -91,7 +91,7 @@ pick_a_card('Spades');
9191
</para>
9292

9393
<para>
94-
By default, cases are not intrinsically backed by a scalar value. That is, <literal>Suit::Hearts</literal>
94+
By default, cases are not intrinsically backed by a scalar value. That is, <constant>Suit::Hearts</constant>
9595
is not equal to <literal>"0"</literal>. Instead, each case is backed by a singleton object of that name. That means that:
9696
</para>
9797

@@ -897,8 +897,8 @@ function query($fields, $filter, SortOrder $order = SortOrder::Asc)
897897
</programlisting>
898898
<para>
899899
The <literal>query()</literal> function can now proceed safe in the knowledge that
900-
<literal>$order</literal> is guaranteed to be either <literal>SortOrder::Asc</literal>
901-
or <literal>SortOrder::Desc</literal>. Any other value would have resulted in a
900+
<literal>$order</literal> is guaranteed to be either <constant>SortOrder::Asc</constant>
901+
or <constant>SortOrder::Desc</constant>. Any other value would have resulted in a
902902
<classname>TypeError</classname>, so no further error checking or testing is needed.
903903
</para>
904904
</example>
@@ -935,9 +935,9 @@ enum UserStatus: string
935935
</programlisting>
936936

937937
<para>
938-
In this example, a user's status may be one of, and exclusively, <literal>UserStatus::Pending</literal>,
939-
<literal>UserStatus::Active</literal>, <literal>UserStatus::Suspended</literal>, or
940-
<literal>UserStatus::CanceledByUser</literal>. A function can type a parameter against
938+
In this example, a user's status may be one of, and exclusively, <constant>UserStatus::Pending</constant>,
939+
<constant>UserStatus::Active</constant>, <constant>UserStatus::Suspended</constant>, or
940+
<constant>UserStatus::CanceledByUser</constant>. A function can type a parameter against
941941
<literal>UserStatus</literal> and then only accept those four values, period.
942942
</para>
943943

language/oop5/basic.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ Stack trace:
690690
The <literal>class</literal> keyword is also used for class
691691
name resolution.
692692
To obtain the fully qualified name of a class <literal>ClassName</literal>
693-
use <literal>ClassName::class</literal>. This is particularly useful with
693+
use <constant>ClassName::class</constant>. This is particularly useful with
694694
<link linkend="language.namespaces">namespaced</link> classes.
695695
</para>
696696
<para>

reference/com/functions/variant-cast.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<listitem>
4040
<para>
4141
<parameter>type</parameter> should be one of the
42-
<constant>VT_XXX</constant> constants.
42+
<constant>VT_<replaceable>*</replaceable></constant> constants.
4343
</para>
4444
</listitem>
4545
</varlistentry>

reference/com/functions/variant-get-type.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<parameter>variant</parameter>, which can be an instance of
3838
<xref linkend="class.com"/>, <xref linkend="class.dotnet"/> or
3939
<xref linkend="class.variant"/> classes. The return value can be compared
40-
to one of the <constant>VT_XXX</constant> constants.
40+
to one of the <constant>VT_<replaceable>*</replaceable></constant> constants.
4141
</para>
4242
<para>
4343
The return value for COM and DOTNET objects will usually be

reference/com/variant/construct.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<listitem>
3636
<simpara>
3737
Specifies the content type of the variant object. Possible values are
38-
one of the <constant>VT_XXX</constant> <xref
38+
one of the <constant>VT_<replaceable>*</replaceable></constant> <xref
3939
linkend="com.constants"/>.
4040
</simpara>
4141
<simpara>

0 commit comments

Comments
 (0)