MediaWiki  1.30.0
UtfNormalDefines.php
Go to the documentation of this file.
1 <?php
29 define( 'UNICODE_HANGUL_FIRST', 0xac00 );
33 define( 'UNICODE_HANGUL_LAST', 0xd7a3 );
34 
38 define( 'UNICODE_HANGUL_LBASE', 0x1100 );
42 define( 'UNICODE_HANGUL_VBASE', 0x1161 );
46 define( 'UNICODE_HANGUL_TBASE', 0x11a7 );
47 
51 define( 'UNICODE_HANGUL_LCOUNT', 19 );
55 define( 'UNICODE_HANGUL_VCOUNT', 21 );
59 define( 'UNICODE_HANGUL_TCOUNT', 28 );
63 define( 'UNICODE_HANGUL_NCOUNT', UNICODE_HANGUL_VCOUNT * UNICODE_HANGUL_TCOUNT );
64 
68 define( 'UNICODE_HANGUL_LEND', UNICODE_HANGUL_LBASE + UNICODE_HANGUL_LCOUNT - 1 );
72 define( 'UNICODE_HANGUL_VEND', UNICODE_HANGUL_VBASE + UNICODE_HANGUL_VCOUNT - 1 );
76 define( 'UNICODE_HANGUL_TEND', UNICODE_HANGUL_TBASE + UNICODE_HANGUL_TCOUNT - 1 );
77 
81 define( 'UNICODE_SURROGATE_FIRST', 0xd800 );
85 define( 'UNICODE_SURROGATE_LAST', 0xdfff );
89 define( 'UNICODE_MAX', 0x10ffff );
93 define( 'UNICODE_REPLACEMENT', 0xfffd );
94 
98 define( 'UTF8_HANGUL_FIRST', "\xea\xb0\x80" /*codepointToUtf8( UNICODE_HANGUL_FIRST )*/ );
102 define( 'UTF8_HANGUL_LAST', "\xed\x9e\xa3" /*codepointToUtf8( UNICODE_HANGUL_LAST )*/ );
103 
107 define( 'UTF8_HANGUL_LBASE', "\xe1\x84\x80" /*codepointToUtf8( UNICODE_HANGUL_LBASE )*/ );
111 define( 'UTF8_HANGUL_VBASE', "\xe1\x85\xa1" /*codepointToUtf8( UNICODE_HANGUL_VBASE )*/ );
115 define( 'UTF8_HANGUL_TBASE', "\xe1\x86\xa7" /*codepointToUtf8( UNICODE_HANGUL_TBASE )*/ );
116 
120 define( 'UTF8_HANGUL_LEND', "\xe1\x84\x92" /*codepointToUtf8( UNICODE_HANGUL_LEND )*/ );
124 define( 'UTF8_HANGUL_VEND', "\xe1\x85\xb5" /*codepointToUtf8( UNICODE_HANGUL_VEND )*/ );
128 define( 'UTF8_HANGUL_TEND', "\xe1\x87\x82" /*codepointToUtf8( UNICODE_HANGUL_TEND )*/ );
129 
133 define( 'UTF8_SURROGATE_FIRST', "\xed\xa0\x80" /*codepointToUtf8( UNICODE_SURROGATE_FIRST )*/ );
137 define( 'UTF8_SURROGATE_LAST', "\xed\xbf\xbf" /*codepointToUtf8( UNICODE_SURROGATE_LAST )*/ );
141 define( 'UTF8_MAX', "\xf4\x8f\xbf\xbf" /*codepointToUtf8( UNICODE_MAX )*/ );
145 define( 'UTF8_REPLACEMENT', "\xef\xbf\xbd" /*codepointToUtf8( UNICODE_REPLACEMENT )*/ );
146 # define( 'UTF8_REPLACEMENT', '!' );
147 
151 define( 'UTF8_OVERLONG_A', "\xc1\xbf" );
155 define( 'UTF8_OVERLONG_B', "\xe0\x9f\xbf" );
159 define( 'UTF8_OVERLONG_C', "\xf0\x8f\xbf\xbf" );
160 
161 # These two ranges are illegal
162 
165 define( 'UTF8_FDD0', "\xef\xb7\x90" /*codepointToUtf8( 0xfdd0 )*/ );
169 define( 'UTF8_FDEF', "\xef\xb7\xaf" /*codepointToUtf8( 0xfdef )*/ );
173 define( 'UTF8_FFFE', "\xef\xbf\xbe" /*codepointToUtf8( 0xfffe )*/ );
177 define( 'UTF8_FFFF', "\xef\xbf\xbf" /*codepointToUtf8( 0xffff )*/ );
178 
182 define( 'UTF8_HEAD', false );
186 define( 'UTF8_TAIL', true );
UNICODE_HANGUL_LBASE
const UNICODE_HANGUL_LBASE
Definition: UtfNormalDefines.php:38
UNICODE_HANGUL_VBASE
const UNICODE_HANGUL_VBASE
Definition: UtfNormalDefines.php:42
UNICODE_HANGUL_LCOUNT
const UNICODE_HANGUL_LCOUNT
Definition: UtfNormalDefines.php:51
UNICODE_HANGUL_TBASE
const UNICODE_HANGUL_TBASE
Definition: UtfNormalDefines.php:46
php
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
Definition: injection.txt:35
UNICODE_HANGUL_TCOUNT
const UNICODE_HANGUL_TCOUNT
Definition: UtfNormalDefines.php:59
UNICODE_HANGUL_VCOUNT
const UNICODE_HANGUL_VCOUNT
Definition: UtfNormalDefines.php:55