@@ -170,8 +170,8 @@ public function parseCharacter($isForIdentifier)
170
170
if (\preg_match ('/[0-9a-fA-F]/Su ' , $ this ->peek ()) === 0 ) {
171
171
return $ this ->consume (1 );
172
172
}
173
- $ sUnicode = $ this ->consumeExpression ('/^[0-9a-fA-F]{1,6}/u ' , 6 );
174
- if ($ this ->strlen ($ sUnicode ) < 6 ) {
173
+ $ hexCodePoint = $ this ->consumeExpression ('/^[0-9a-fA-F]{1,6}/u ' , 6 );
174
+ if ($ this ->strlen ($ hexCodePoint ) < 6 ) {
175
175
// Consume whitespace after incomplete unicode escape
176
176
if (\preg_match ('/ \\s/isSu ' , $ this ->peek ())) {
177
177
if ($ this ->comes ('\\r \\n ' )) {
@@ -181,13 +181,13 @@ public function parseCharacter($isForIdentifier)
181
181
}
182
182
}
183
183
}
184
- $ iUnicode = \intval ($ sUnicode , 16 );
185
- $ sUtf32 = '' ;
184
+ $ codePoint = \intval ($ hexCodePoint , 16 );
185
+ $ utf32EncodedCharacter = '' ;
186
186
for ($ i = 0 ; $ i < 4 ; ++$ i ) {
187
- $ sUtf32 .= \chr ($ iUnicode & 0xff );
188
- $ iUnicode = $ iUnicode >> 8 ;
187
+ $ utf32EncodedCharacter .= \chr ($ codePoint & 0xff );
188
+ $ codePoint = $ codePoint >> 8 ;
189
189
}
190
- return \iconv ('utf-32le ' , $ this ->charset , $ sUtf32 );
190
+ return \iconv ('utf-32le ' , $ this ->charset , $ utf32EncodedCharacter );
191
191
}
192
192
if ($ isForIdentifier ) {
193
193
$ peek = \ord ($ this ->peek ());
0 commit comments