Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 25 of 183) sorted by relevance

12345678

/PHP-7.0/ext/intl/doc/
H A Dmsgfmt_api.php19 * @param string $pattern the pattern string to stick arguments into
21 public function __construct($locale, $pattern) {} argument
27 * @param string $pattern the pattern string to stick arguments into
29 public static function create($locale, $pattern) {} argument
55 * @param string $pattern the pattern string to insert things into
59 public static function formatMessage($locale, $pattern, $args) {} argument
87 public function setPattern($pattern) {} argument
121 function msgfmt_create($locale, $pattern) {} argument
149 * @param string $pattern the pattern string to insert things into
153 function msgfmt_format_message($locale, $pattern, $args) {} argument
[all …]
H A Ddatefmt_api.php61 * @param [string] $pattern Optional pattern to use when formatting or parsing
66 …n __construct($locale, $datetype, $timetype, $timezone = null, $calendar= null , $pattern= null) {} argument
77 * @param [string] $pattern Optional pattern to use when formatting or parsing
82 …nction create($locale, $datetype, $timetype, $timezone = null, $calendar= null , $pattern= null) {} argument
217 * @param string $pattern new pattern string to use
221 public function setPattern($pattern) {} argument
258 * @param [string] $pattern Optional pattern to use when formatting or parsing
262 …function datefmt_create($locale, $datetype, $timetype, $timezone = null, $calendar= null ,$pattern argument
400 * @param string $pattern new pattern string to use
404 function datefmt_set_pattern($fmt , $pattern) {} argument
H A Dformatter_api.php147 * @param [string] $pattern Pattern string in case chose style requires pattern
150 public function __construct($locale, $style, $pattern = null) {} argument
163 * @param [string] $pattern Pattern string in case chose style requires pattern
168 public static function create($locale, $style, $pattern = null) {} argument
266 * @param string $pattern The pattern to be used.
269 public function setPattern($pattern) {} argument
336 * @param [string] $pattern Pattern string in case chose style requires pattern
339 function numfmt_create($locale, $style, $pattern = null) {} argument
437 * @param string $pattern The pattern to be used.
440 function numfmt_set_pattern($formatter, $pattern) {} argument
/PHP-7.0/win32/
H A Dfnmatch.c65 switch (c = *pattern++) { in fnmatch()
82 c = *pattern; in fnmatch()
85 c = *++pattern; in fnmatch()
120 if ((pattern = in fnmatch()
129 --pattern; in fnmatch()
165 if ( (negate = (*pattern == '!' || *pattern == '^')) ) in rangematch()
166 ++pattern; in rangematch()
173 c = *pattern++; in rangematch()
180 if (*pattern == '-' in rangematch()
182 pattern += 2; in rangematch()
[all …]
H A Dglob.c164 const char *pattern; in glob()
222 const Char *pattern; in globexp1()
229 if (pattern[0] == LBRACE && pattern[1] == RBRACE && pattern[2] == EOS)
357 const Char *pattern; in globtilde()
370 return pattern;
393 return pattern;
397 return pattern;
406 return pattern;
410 return pattern;
588 p = pattern;
[all …]
/PHP-7.0/ext/intl/tests/
H A Ddateformat_get_set_pattern.phpt30 $pattern = ut_datefmt_get_pattern( $fmt);
31 $res_str .= "\nAfter call to get_pattern : pattern= $pattern";
41 $pattern = ut_datefmt_get_pattern( $fmt);
42 $res_str .= "\nAfter call to get_pattern : pattern= $pattern";
59 Creating IntlDateFormatter with pattern = dd-MM-YY
60 After call to get_pattern : pattern= dd-MM-YY
65 After call to get_pattern : pattern= DD-MM-YYYY hh:mm:ss
76 Setting IntlDateFormatter with pattern = yyyy/MM/dd
77 After call to get_pattern : pattern= yyyy/MM/dd
82 Setting IntlDateFormatter with pattern = yyyyMMdd
[all …]
H A Ddateformat_get_set_pattern2.phpt30 $pattern = ut_datefmt_get_pattern( $fmt);
31 $res_str .= "\nAfter call to get_pattern : pattern= $pattern";
41 $pattern = ut_datefmt_get_pattern( $fmt);
42 $res_str .= "\nAfter call to get_pattern : pattern= $pattern";
59 Creating IntlDateFormatter with pattern = dd-MM-YY
60 After call to get_pattern : pattern= dd-MM-YY
65 After call to get_pattern : pattern= DD-MM-YYYY hh:mm:ss
76 Setting IntlDateFormatter with pattern = yyyy/MM/dd
77 After call to get_pattern : pattern= yyyy/MM/dd
82 Setting IntlDateFormatter with pattern = yyyyMMdd
[all …]
H A Dformatter_get_set_pattern.phpt9 * Get/set pattern.
20 $res_str .= "Default pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n";
23 // Set a new pattern.
28 // Check if the pattern has been changed.
32 $res_str .= "New pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n";
36 $res_str .= "New pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n";
47 Default pattern: '#.###############################################################################…
49 New pattern: '#0.0'
51 New pattern: '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@…
H A Dmsgfmt_get_set_pattern.phpt9 * Get/set pattern.
19 $res_str .= "Default pattern: '" . ut_msgfmt_get_pattern( $fmt ) . "'\n";
22 // Set a new pattern.
23 $pattern = "{0,number} trees hosting {1,number} monkeys";
24 $res = ut_msgfmt_set_pattern( $fmt, $pattern );
28 // Check if the pattern has been changed.
32 $res_str .= "New pattern: '" . ut_msgfmt_get_pattern( $fmt ) . "'\n";
35 ut_msgfmt_set_pattern($fmt, str_repeat($pattern, 10));
36 $res_str .= "New pattern: '" . ut_msgfmt_get_pattern( $fmt ) . "'\n";
48 Default pattern: '{0,number} monkeys on {1,number} trees'
[all …]
H A Ddateformat_bug71516.phpt2 Bug #71516 IntlDateFormatter losts locale if pattern is set via constructor
15 echo "Formatter without pattern: " . $goodFormatter->getLocale() . PHP_EOL;
16 echo "Formatter with pattern: " . $badFormatter->getLocale() . PHP_EOL;
17 echo "Formatter with pattern set later: " . $badFormatter2->getLocale() . PHP_EOL;
22 Formatter without pattern: ru
23 Formatter with pattern: ru
24 Formatter with pattern set later: ru
/PHP-7.0/ext/mbstring/tests/
H A Dbug43994.phpt46 Warning: mb_ereg(): empty pattern in %s on line %d
50 Warning: mb_ereg(): empty pattern in %s on line %d
57 Warning: mb_ereg(): empty pattern in %s on line %d
61 Warning: mb_ereg(): empty pattern in %s on line %d
68 Warning: mb_ereg(): empty pattern in %s on line %d
72 Warning: mb_ereg(): empty pattern in %s on line %d
79 Warning: mb_ereg(): empty pattern in %s on line %d
83 Warning: mb_ereg(): empty pattern in %s on line %d
90 Warning: mb_ereg(): empty pattern in %s on line %d
94 Warning: mb_ereg(): empty pattern in %s on line %d
[all …]
/PHP-7.0/ext/standard/
H A Dbrowscap.c38 zend_string *pattern; member
75 zend_string_release(entry->pattern);
85 zend_string_release(entry->pattern); in browscap_entry_dtor_persistent()
112 for (; i < ZSTR_LEN(pattern); i++) { in browscap_compute_contains()
116 if (i + 1 < ZSTR_LEN(pattern) && in browscap_compute_contains()
125 for (; i < ZSTR_LEN(pattern); i++) { in browscap_compute_contains()
136 size_t i, len = ZSTR_LEN(pattern); in browscap_compute_regex_len()
138 switch (ZSTR_VAL(pattern)[i]) { in browscap_compute_regex_len() local
166 zend_str_tolower_copy(lc_pattern, ZSTR_VAL(pattern), ZSTR_LEN(pattern)); in browscap_convert_pattern()
378 entry->pattern = zend_string_copy(pattern); in php_browscap_parser_cb()
[all …]
/PHP-7.0/ext/standard/tests/file/
H A Dglob_error_002-win32.phpt2 Test glob() function: error condition - pattern too long.
12 /* Prototype: array glob ( string $pattern [, int $flags] );
13 Description: Find pathnames matching a pattern
16 echo "*** Testing glob() : error condition - pattern too long. ***\n";
23 *** Testing glob() : error condition - pattern too long. ***
/PHP-7.0/ext/pcre/tests/
H A Dbug52971.phpt10 $pattern = '/\bwasser/iu';
11 preg_match_all($pattern, $message, $match, PREG_OFFSET_CAPTURE);
14 $pattern = '/[^\w]wasser/iu';
15 preg_match_all($pattern, $message, $match, PREG_OFFSET_CAPTURE);
H A Dbug72688.phpt6 $pattern = [];
8 $pattern[] = "(?'group{$i}'{$i}$)";
10 $fullPattern = '/' . implode('|', $pattern) . '/uix';
H A Dbug70232.phpt11 $pattern = '~(?: |\G)\d\B\K~';
13 preg_match_all($pattern, $subject, $matches);
15 var_dump(preg_replace($pattern, "*", $subject));
16 var_dump(preg_split($pattern, $subject));
/PHP-7.0/ext/pcre/pcrelib/testdata/
H A Dtestoutput21-162 right away, and can be any old pattern compiled in 8-bit mode ("abc" is
6 Compiled pattern loaded from testsaved8
9 Running in 16-bit mode but pattern was compiled in 8-bit mode
23 Compiled pattern loaded from testsaved16LE-1
56 Compiled pattern loaded from testsaved16BE-1
89 Compiled pattern loaded from testsaved32LE-1
92 Running in 16-bit mode but pattern was compiled in 32-bit mode
95 Compiled pattern loaded from testsaved32BE-1
98 Running in 16-bit mode but pattern was compiled in 32-bit mode
H A Dtestoutput21-322 right away, and can be any old pattern compiled in 8-bit mode ("abc" is
6 Compiled pattern loaded from testsaved8
9 Running in 32-bit mode but pattern was compiled in 8-bit mode
23 Compiled pattern loaded from testsaved16LE-1
26 Running in 32-bit mode but pattern was compiled in 16-bit mode
29 Compiled pattern loaded from testsaved16BE-1
32 Running in 32-bit mode but pattern was compiled in 16-bit mode
35 Compiled pattern loaded from testsaved32LE-1
68 Compiled pattern loaded from testsaved32BE-1
H A Dtestoutput22-1616 Compiled pattern loaded from testsaved16LE-2
43 Compiled pattern loaded from testsaved16BE-2
70 Compiled pattern loaded from testsaved32LE-2
73 Running in 16-bit mode but pattern was compiled in 32-bit mode
76 Compiled pattern loaded from testsaved32BE-2
79 Running in 16-bit mode but pattern was compiled in 32-bit mode
H A Dtestoutput22-3216 Compiled pattern loaded from testsaved16LE-2
19 Running in 32-bit mode but pattern was compiled in 16-bit mode
22 Compiled pattern loaded from testsaved16BE-2
25 Running in 32-bit mode but pattern was compiled in 16-bit mode
28 Compiled pattern loaded from testsaved32LE-2
55 Compiled pattern loaded from testsaved32BE-2
/PHP-7.0/ext/mbstring/oniguruma/
H A Dtestc.c43 r = regcomp(&reg, pattern, REG_EXTENDED | REG_NEWLINE); in xx()
61 fprintf(stdout, "OK(N): /%s/ '%s'\n", pattern, str); in xx()
65 fprintf(stdout, "FAIL: /%s/ '%s'\n", pattern, str); in xx()
76 fprintf(stdout, "OK: /%s/ '%s'\n", pattern, str); in xx()
92 r = onig_new(&reg, (UChar* )pattern, (UChar* )(pattern + SLEN(pattern)), in xx()
119 fprintf(stdout, "FAIL: /%s/ '%s'\n", pattern, str); in xx()
130 fprintf(stdout, "OK: /%s/ '%s'\n", pattern, str); in xx()
146 xx(pattern, str, from, to, 0, 0); in x2()
151 xx(pattern, str, from, to, mem, 0); in x3()
154 static void n(char* pattern, char* str) in n() argument
[all …]
H A Dreggnu.c82 re_compile_pattern(const char* pattern, int size, regex_t* reg, char* ebuf) in re_compile_pattern() argument
87 r = onig_compile(reg, (UChar* )pattern, (UChar* )(pattern + size), &einfo); in re_compile_pattern()
98 re_recompile_pattern(const char* pattern, int size, regex_t* reg, char* ebuf) in re_recompile_pattern() argument
109 r = onig_recompile(reg, (UChar* )pattern, (UChar* )(pattern + size), in re_recompile_pattern()
/PHP-7.0/ext/mbstring/oniguruma/win32/
H A Dtestc.c43 r = regcomp(&reg, pattern, REG_EXTENDED | REG_NEWLINE); in xx()
61 fprintf(stdout, "OK(N): /%s/ '%s'\n", pattern, str); in xx()
65 fprintf(stdout, "FAIL: /%s/ '%s'\n", pattern, str); in xx()
76 fprintf(stdout, "OK: /%s/ '%s'\n", pattern, str); in xx()
92 r = onig_new(&reg, (UChar* )pattern, (UChar* )(pattern + SLEN(pattern)), in xx()
119 fprintf(stdout, "FAIL: /%s/ '%s'\n", pattern, str); in xx()
130 fprintf(stdout, "OK: /%s/ '%s'\n", pattern, str); in xx()
146 xx(pattern, str, from, to, 0, 0); in x2()
151 xx(pattern, str, from, to, mem, 0); in x3()
154 static void n(char* pattern, char* str) in n() argument
[all …]
/PHP-7.0/ext/pcre/
H A Dupgrade-pcre.php5 $pattern = 'pcre-*.tar.*'; variable
6 $newpcre = glob($pattern);
9 echo "more than one '$pattern' file. aborting\n";
15 die("need one '$pattern' file. aborting.\n");
/PHP-7.0/ext/intl/msgformat/
H A Dmsgformat.c33 char* pattern; in msgfmt_ctor() local
45 &locale, &locale_len, &pattern, &pattern_len ) == FAILURE ) in msgfmt_ctor()
56 if(pattern && pattern_len) { in msgfmt_ctor()
57 …intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(m… in msgfmt_ctor()
78 (mfo)->mf_data.orig_format = estrndup(pattern, pattern_len); in msgfmt_ctor()

Completed in 52 milliseconds

12345678