Lines Matching refs:string

78             ->given($string = new LUT('je'))
79 ->when($result = $string->append(' t\'aime'))
82 ->isIdenticalTo($string)
83 ->string((string) $result)
90 ->given($string = new LUT('أ'))
91 ->when($result = $string->append('حبك'))
94 ->isIdenticalTo($string)
95 ->string((string) $result)
102 ->given($string = new LUT(' t\'aime'))
103 ->when($result = $string->prepend('je'))
106 ->isIdenticalTo($string)
107 ->string((string) $result)
114 ->given($string = new LUT('ك'))
115 ->when($result = $string->prepend('أحب'))
118 ->isIdenticalTo($string)
119 ->string((string) $result)
126 ->given($string = new LUT('je t\'aime'))
127 ->when($result = $string->pad(20, '�� �� �� ❤️ ', LUT::BEGINNING))
130 ->isIdenticalTo($string)
131 ->string((string) $result)
138 ->given($string = new LUT('أحبك'))
139 ->when($result = $string->pad(20, '�� �� �� ❤️ ', LUT::BEGINNING))
142 ->isIdenticalTo($string)
143 ->string((string) $result)
150 ->given($string = new LUT('je t\'aime'))
151 ->when($result = $string->pad(20, '�� �� �� ❤️ ', LUT::END))
154 ->isIdenticalTo($string)
155 ->string((string) $result)
162 ->given($string = new LUT('أحبك'))
163 ->when($result = $string->pad(20, '�� �� �� ❤️ ', LUT::END))
166 ->isIdenticalTo($string)
167 ->string((string) $result)
178 $string = new LUT('b')
186 ->given($string = new LUT('b'))
187 ->when($result = $string->compare('a'))
192 ->when($result = $string->compare('b'))
197 ->when($result = $string->compare('c'))
212 ->string($result)
222 ->string($result)
232 ->string($result)
241 $string = new LUT('foo �� bar')
243 ->when($result = $string->match($pattern, $matches))
258 $string = new LUT('foo �� bar')
260 ->when($result = $string->match($pattern, $matches, 0, 0))
267 ->when($result = $string->match($pattern, $matches, 0, 4))
274 ->when($result = $string->match($pattern, $matches, 0, 5))
287 $string = new LUT('foo �� bar')
289 ->when($result = $string->match($pattern, $matches, $string::WITH_OFFSET))
307 $string = new LUT('foo �� bar �� baz')
309 ->when($result = $string->match($pattern, $matches, 0, 0, true))
327 $string = new LUT('foo �� bar �� baz')
329 ->when($result = $string->match($pattern, $matches, $string::WITH_OFFSET, 0, true))
353 $string = new LUT('foo �� bar �� baz')
355 ->when($result = $string->match($pattern, $matches, $string::GROUP_BY_PATTERN, 0, true))
377 $string = new LUT('foo �� bar �� baz')
379 ->when($result = $string->match($pattern, $matches, $string::GROUP_BY_TUPLE, 0, true))
399 ->given($string = new LUT('❤️ �� ��'))
400 ->when($result = $string->replace('/��/u', '��'))
403 ->isIdenticalTo($string)
404 ->string((string) $result)
411 ->given($string = new LUT('❤️ �� ��'))
412 ->when($result = $string->replace('/��/u', '��', 1))
415 ->isIdenticalTo($string)
416 ->string((string) $result)
423 ->given($string = new LUT('❤️��❤️��❤️'))
424 ->when($result = $string->split('/��/'))
437 ->given($string = new LUT('❤️��❤️��❤️'))
438 ->when($result = $string->split('/��/', 1))
449 ->given($string = new LUT('❤️��❤️��❤️'))
450 ->when($result = $string->split('/��/', -1, $string::WITH_DELIMITERS))
463 ->given($string = new LUT('❤️��❤️��❤️'))
464 ->when($result = $string->split('/��/', -1, $string::WITH_OFFSET))
486 ->given($string = new LUT('je t\'aime'))
487 ->when($result = iterator_to_array($string))
506 ->given($string = new LUT('أحبك'))
507 ->when($result = iterator_to_array($string))
521 ->given($string = new LUT('Σ \'ΑΓΑΠΏ'))
522 ->when($result = $string->toLowerCase())
525 ->isIdenticalTo($string)
526 ->string((string) $result)
529 ->given($string = new LUT('JE T\'AIME'))
530 ->when($result = $string->toLowerCase())
533 ->isIdenticalTo($string)
534 ->string((string) $result)
541 ->given($string = new LUT('σ \'αγαπώ'))
542 ->when($result = $string->toUpperCase())
545 ->isIdenticalTo($string)
546 ->string((string) $result)
549 ->given($string = new LUT('je t\'aime'))
550 ->when($result = $string->toUpperCase())
553 ->isIdenticalTo($string)
554 ->string((string) $result)
561 ->given($string = new LUT('����❤️����'))
562 ->when($result = $string->trim('��'))
565 ->isIdenticalTo($string)
566 ->string((string) $result)
573 ->given($string = new LUT('����❤️����'))
574 ->when($result = $string->trim('��', $string::BEGINNING))
577 ->isIdenticalTo($string)
578 ->string((string) $result)
585 ->given($string = new LUT('����❤️����'))
586 ->when($result = $string->trim('��', $string::END))
589 ->isIdenticalTo($string)
590 ->string((string) $result)
597 ->given($string = new LUT('je t\'aime'))
598 ->when($result = $string[0])
600 ->string($result)
603 ->when($result = $string[-1])
605 ->string($result)
612 ->given($string = new LUT('أحبك'))
613 ->when($result = $string[0])
615 ->string($result)
618 ->when($result = $string[-1])
620 ->string($result)
627 ->given($string = new LUT('أحبﻙ'))
628 ->when($string[-1] = 'ك')
630 ->string((string) $string)
637 ->given($string = new LUT('أحبك��'))
638 ->when(function () use ($string) {
639 unset($string[-1]);
642 ->string((string) $string)
649 ->given($string = new LUT('أحبك'))
650 ->when($result = $string->reduce(0, 1))
653 ->isIdenticalTo($string)
654 ->string((string) $result)
661 ->given($string = new LUT('je t\'aime'))
662 ->when($result = count($string))
667 ->given($string = new LUT('أحبك'))
668 ->when($result = count($string))
673 ->given($string = new LUT('��'))
674 ->when($result = count($string))
683 ->given($string = new LUT('��'))
684 ->when($result = $string->getByteAt(0))
689 ->when($result = $string->getByteAt(1))
694 ->when($result = $string->getByteAt(2))
699 ->when($result = $string->getByteAt(3))
704 ->when($result = $string->getByteAt(-1))
713 ->given($string = new LUT('��'))
714 ->when($result = $string->getBytesLength())
723 ->given($string = new LUT('��'))
724 ->when($result = $string->getWidth())
729 ->given($string = new LUT('習'))
730 ->when($result = $string->getWidth())
826 ->string($result)
832 ->string($result)
838 ->string($result)
844 ->string($result)
882 ->string($result)
888 ->string($result)
894 ->string($result)
900 ->string($result)
924 ->string($Σ)
930 ->string($Σ)
945 $string = new LUT('Un été brûlant sur la côte')
947 ->exception(function () use ($string) {
948 $string->toAscii();
960 $string = new LUT('Un été brûlant sur la côte')
962 ->when($result = $string->toAscii(true))
965 ->isIdenticalTo($string)
966 ->string((string) $result)
977 $string = new LUT('Un été brûlant sur la côte')
979 ->when($result = $string->toAscii())
982 ->isIdenticalTo($string)
983 ->string((string) $result)
1029 ->given($string = new LUT($original))
1030 ->when($result = $string->toAscii())
1033 ->isIdenticalTo($string)
1034 ->string((string) $result)
1043 ->given($string = new LUT('foo'))
1044 ->when($result = $string->copy())
1047 ->isEqualTo($string);