Lines Matching refs:label

165         foreach ($labels as $i => $label) {
167 if (1 === preg_match('/[^\x00-\x7F]/', $label)) {
169 $label = 'xn--'.self::punycodeEncode($label);
174 $labels[$i] = $label;
225 * @param string $label
229 private static function isValidContextJ(array $codePoints, $label) argument
254 …if (0x200C === $codePoint && 1 === preg_match(Regex::ZWNJ, $label, $matches, \PREG_OFFSET_CAPTURE,…
347 foreach ($labels as $i => $label) {
350 if ('xn--' === substr($label, 0, 4)) {
352 $label = self::punycodeDecode(substr($label, 4));
360 $labels[$i] = $label;
363 … self::validateLabel($label, $info, $validationOptions, $i > 0 && $i === $lastLabelIndex);
380 * @param string $label
382 private static function validateBidiLabel($label, Info $info) argument
384 if (1 === preg_match(Regex::RTL_LABEL, $label)) {
389 if (1 !== preg_match(Regex::BIDI_STEP_1_RTL, $label)) {
397 if (1 === preg_match(Regex::BIDI_STEP_2, $label)) {
405 if (1 !== preg_match(Regex::BIDI_STEP_3, $label)) {
412 …if (1 === preg_match(Regex::BIDI_STEP_4_AN, $label) && 1 === preg_match(Regex::BIDI_STEP_4_EN, $la…
424 if (1 !== preg_match(Regex::BIDI_STEP_1_LTR, $label)) {
432 if (1 === preg_match(Regex::BIDI_STEP_5, $label)) {
440 if (1 !== preg_match(Regex::BIDI_STEP_6, $label)) {
484 * @param string $label
488 private static function validateLabel($label, Info $info, array $options, $canBeEmpty) argument
490 if ('' === $label) {
499 if (!Normalizer::isNormalized($label, Normalizer::FORM_C)) {
503 $codePoints = self::utf8Decode($label);
514 if ('-' === substr($label, 0, 1)) {
518 if ('-' === substr($label, -1, 1)) {
524 if (false !== strpos($label, '.')) {
529 if (1 === preg_match(Regex::COMBINING_MARK, $label)) {
554 if ($options['CheckJoiners'] && !self::isValidContextJ($codePoints, $label)) {
561 self::validateBidiLabel($label, $info);