Lines Matching full:if

15  * along with this program. If not, see <https://www.gnu.org/licenses/>.
120 if ($inputText === '') {
153 if ($endPos === false) {
159 if (strlen($element) < 7 && $temp === '<br') {
160 if ($numberState) {
162 if (self::$currentState === 'RTL') {
177 if ($endPos === false) {
182 if (strtolower($entity) === '&nbsp;') {
185 if (self::$waitingText === '') {
193 if (substr($workingText, 1, 1) === '{') {
196 if ($endPos === false) {
210 if ($numberState) {
211 // If we're inside a numeric string, look for reasons to end it
214 if (!str_contains(self::NUMBERS, $charArray['letter'])) {
216 if (substr($workingText . "\n", $offset, 6) === '&nbsp;') {
221 … // If the next character is a digit, the current character is numeric punctuation
223 if (!str_contains(self::NUMBERS, $charArray['letter'])) {
226 if (self::$currentState === 'RTL') {
227 if (!str_contains(self::NUMBER_PREFIX, $currentLetter)) {
236 // If we're outside a numeric string, look for reasons to start it
240 if (str_contains(self::NUMBERS, $nextChar)) {
242 if (self::$currentState === 'RTL') {
248 if (self::$currentState === 'RTL') {
257 if (I18N::scriptDirection(I18N::textScript($currentLetter)) === 'rtl') {
258 if (self::$currentState === '') {
263 if (self::$currentState === 'RTL') {
266 // Switch to RTL only if this isn't a solitary RTL letter
274if (I18N::scriptDirection(I18N::textScript($nextLetter)) === 'rtl') {
279if (str_contains(self::PUNCTUATION, $nextLetter) || str_contains(self::OPEN_PARENTHESES, $nextLett…
284 if ($nextLetter === ' ') {
288 if ($nextLetter === '&nbsp;') {
297if ($currentLen !== 1 || $currentLetter >= 'A' && $currentLetter <= 'Z' || $currentLetter >= 'a' &…
302 if ($closeParIndex !== false) {
304if (!empty($openParDirection[$closeParIndex]) && $openParDirection[$closeParIndex] !== '?') {
312 if ($openParIndex !== false) {
315 if ($workingText === '') {
318 if (str_starts_with($workingText, ' ')) {
324 if (str_starts_with($workingText, '&nbsp;')) {
343 if (self::$currentState !== '') {
349 if ($newState !== self::$currentState) {
363 if ($value === '?') {
372 // We're done. Finish last <span> if necessary
373 if ($numberState) {
374 if (self::$waitingText === '') {
375 if (self::$currentState === 'RTL') {
385 if (self::$waitingText !== '') {
386 if (I18N::direction() === 'rtl' && self::$currentState === 'LTR') {
404 if ($spanEnd === false) {
408 if (I18N::scriptDirection(I18N::textScript($textSpan)) === 'rtl') {
416 if (I18N::direction() === 'rtl') {
422 if (str_contains($result, ' <LTRbr>')) {
426 if (str_contains($result, '&nbsp;<LTRbr>')) {
430 if (str_contains($result, ' <br>')) {
434 if (str_contains($result, '&nbsp;<br>')) {
443 if (str_contains($result, ' <RTLbr>')) {
447 if (str_contains($result, '&nbsp;<RTLbr>')) {
464if (substr($result . "\n", 0, self::LENGTH_START) !== self::START_LTR && substr($result . "\n", 0,…
467 if ($result === '') {
471if (substr($result . "\n", 0, self::LENGTH_START) !== self::START_LTR && substr($result . "\n", 0,…
533 if ($direction === strtoupper(I18N::direction())) {
536 if ($starPos === false) {
542 if ($wordStart !== false) {
579 if ($text === '') {
588 if ((ord($char) & 0xE0) === 0xC0) {
591 if ((ord($char) & 0xF0) === 0xE0) {
594 if ((ord($char) & 0xF8) === 0xF0) {
631 if (self::$currentState === 'LTR') {
634 if (self::$currentState === 'RTL') {
664 if ($posColon === false) {
668 if ($posLRE === false) {
672 if ($posPDF === false) {
680 if ($posColon === false) {
687 if ($posBlank < $posNbsp) {
694 if ($posColon > $posSeparator) {
705 if ($posBlank === false && $posNbsp === false) {
712 if ($posBlank === false) {
738 if (self::$currentState === 'LTR') {
740 if (I18N::direction() === 'rtl' && self::$previousState === 'RTL' && !$theEnd) {
745 if (str_ends_with($textSpan, ' ')) {
750 if (str_ends_with($textSpan, '&nbsp;')) {
755 if (substr($textSpan, -3) !== self::UTF8_PDF) {
763 if ($posStartNumber === false) {
771 if (str_ends_with($textSpan, ' ')) {
776 if (str_ends_with($textSpan, '&nbsp;')) {
792 if (str_ends_with($textSpan, ' ')) {
797 if (str_ends_with('......' . $textSpan, '&nbsp;')) {
808 if ($trailingBreaks !== '') {
810 if (str_ends_with($textSpan, ' ')) {
815 if (str_ends_with($textSpan, '&nbsp;')) {
834 if (str_contains($result, self::START_RTL)) {
837 if (str_ends_with($textSpan, ' ')) {
842 if (str_ends_with($textSpan, '&nbsp;')) {
851 if ($textSpan === '') {
856 if (str_contains(self::PUNCTUATION, $trailingChar)) {
864 if (!str_ends_with($textSpan, ')')) {
868 if ($posLeftParen === false) {
873 // If the parenthesized text doesn't look like an ID number,
875 // This check won’t work if somebody uses ID numbers with an unusual format.
878 if (str_contains(self::NUMBERS, $charArray['letter'])) {
882 if (!str_contains(self::NUMBERS, substr($temp, $offset, 1))) {
886 if (!str_contains(self::NUMBERS, substr($temp, -2, 1))) {
896 if ($trailingID !== '') {
898 if (str_ends_with($textSpan, ' ')) {
903 if (str_ends_with($textSpan, '&nbsp;')) {
908 if (str_ends_with($textSpan, '-')) {
921 if (str_starts_with($textSpan, ' ')) {
926 if (str_starts_with($textSpan, '&nbsp;')) {
931 if (str_starts_with($textSpan, '-')) {
939 if (!$foundSeparator) {
950 if (str_contains($textSpan, ' <LTRbr>')) {
954 if (str_contains($textSpan, '&nbsp;<LTRbr>')) {
960 if ($leadingSeparator !== '') {
964 if ($trailingSeparator !== '') {
967 if ($trailingID !== '') {
970 if ($trailingPunctuation !== '') {
973 if ($trailingBlanks !== '') {
980 if (self::$currentState === 'RTL') {
985 if (str_ends_with($textSpan, ' ')) {
990 if (str_ends_with('......' . $textSpan, '&nbsp;')) {
1001 if ($trailingBreaks !== '') {
1008 if (!$theEnd && I18N::direction() !== 'rtl') {
1013 if (str_ends_with($textSpan, ' ')) {
1018 if (str_ends_with($textSpan, '&nbsp;')) {
1023 if (substr($textSpan, -3) !== self::UTF8_PDF) {
1031 if ($posStartNumber === false) {
1039 if (str_ends_with($textSpan, ' ')) {
1044 if (str_ends_with($textSpan, '&nbsp;')) {
1058 if (!$theEnd && str_ends_with('...' . $textSpan, ' - ')) {
1066 if ($posDashString === false) {
1070 if ($posStringStart === false) {
1082 if (str_starts_with($textSpan, ' ')) {
1087 if (str_starts_with($textSpan, '&nbsp;')) {
1098 if (str_ends_with($textSpan, ' ')) {
1103 if (str_ends_with($textSpan, '&nbsp;')) {
1112 if (str_ends_with($textSpan, ' -')) {
1115 if ($posStringStart === false) {
1124 if ($countLeadingSpaces !== 0) {
1128 if ($countTrailingSpaces !== 0) {
1129 if (I18N::direction() === 'ltr') {
1130 if ($trailingBreaks === '') {
1146 if (self::$currentState !== 'LTR' && self::$currentState !== 'RTL') {