Skip to content

Commit 6425d57

Browse files
committed
Merge branch '5.0'
* 5.0: Fix UnicodeString::fromCodePoints example Fix output of before() example
2 parents f6830ac + e52a666 commit 6425d57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/string.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ There are also some specialized constructors::
126126

127127
// CodePointString and UnicodeString can create a string from code points
128128
$foo = UnicodeString::fromCodePoints(0x928, 0x92E, 0x938, 0x94D, 0x924, 0x947);
129-
// $foo = 'नमस्ते'
129+
// equivalent to: $foo = new UnicodeString('नमस्ते');
130130

131131
Methods to Transform String Objects
132132
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -238,7 +238,7 @@ Methods to Append and Prepend
238238

239239
// returns the contents found before/after the first occurrence of the given string
240240
u('hello world')->before('world'); // 'hello '
241-
u('hello world')->before('o'); // 'hell '
241+
u('hello world')->before('o'); // 'hell'
242242
u('hello world')->before('o', true); // 'hello'
243243

244244
u('hello world')->after('hello'); // ' world'

0 commit comments

Comments
 (0)