Searched defs:string (Results 1 - 25 of 40) sorted by relevance

12

/PHP_TRUNK/win32/
H A Dfnmatch.c50 #include <string.h>
59 PHPAPI int fnmatch(const char *pattern, const char *string, int flags) argument
64 for (stringstart = string;;)
67 if ((flags & FNM_LEADING_DIR) && *string == '/')
69 return (*string == EOS ? 0 : FNM_NOMATCH);
71 if (*string == EOS)
73 if (*string == '/' && (flags & FNM_PATHNAME))
75 if (*string == '.' && (flags & FNM_PERIOD) &&
76 (string == stringstart ||
77 ((flags & FNM_PATHNAME) && *(string
[all...]
H A Dsendmail.c32 #include <string.h>
116 /* This pattern removes \r\n from the start of the string,
117 * \r\n from the end of the string and also makes sure every line
249 * string found in the lowercase headrs + 5 characters to jump over
325 // Output: pointer to a string containing the error description
353 // 4) data: Null terminated string containing the data to be send.
463 * string found in the lowercase headrs + 3 characters to jump over
518 * string found in the lowercase headrs + 4 characters to jump over
553 /* headers = point to string start of header
648 static int addToHeader(char **header_buffer, const char *specifier, char *string) argument
[all...]
/PHP_TRUNK/ext/mbstring/libmbfl/tests/
H A Dconv_kana.c10 #include <string.h>
29 mbfl_string string, result; local
107 mbfl_string_init_set(&string, no_lang, no_enc);
139 mbfl_memory_device_result(&dev, &string);
140 mbfl_ja_jp_hantozen(&string, &result, mode);
143 mbfl_string_clear(&string);
H A Dsample.c16 mbfl_string string, result, *ret; local
18 unsigned char input[] = "���ܸ�ʸ����"; /* EUC-JP kanji string */
24 mbfl_string_init(&string);
27 string.no_encoding = from_encoding;
28 string.no_language = no_language;
29 string.val = (unsigned char *)input;
30 string.len = strlen(input);
33 ret = mbfl_buffer_converter_feed_result(convd, &string, &result);
H A Dstrcut.c10 #include <string.h>
30 mbfl_string string; local
70 mbfl_string_init_set(&string, no_language, no_encoding);
102 mbfl_memory_device_result(&dev, &string);
103 if (mbfl_strcut(&string, &result, offset, length)) {
109 mbfl_string_clear(&string);
H A Dstrwidth.c10 #include <string.h>
18 mbfl_string string; local
41 mbfl_string_init_set(&string, no_language, no_encoding);
73 mbfl_memory_device_result(&dev, &string);
74 printf("%d\n", mbfl_strwidth(&string));
75 mbfl_string_clear(&string);
H A Dconv_encoding.c10 #include <string.h>
30 mbfl_string string, result, *ret; local
61 mbfl_string_init_set(&string, no_language, from_encoding);
93 mbfl_memory_device_result(&dev, &string);
95 ret = mbfl_buffer_converter_feed_result(convd, &string, &result);
98 mbfl_string_clear(&string);
H A Demoji.c10 #include <string.h>
34 mbfl_string string, result, *ret; local
71 mbfl_string_init_set(&string, no_language, from_encoding);
77 mbfl_memory_device_result(&dev, &string);
79 ret = mbfl_buffer_converter_feed_result(convd, &string, &result);
100 mbfl_string_init_set(&string, no_language, to_encoding);
106 mbfl_memory_device_result(&dev2, &string);
108 ret = mbfl_buffer_converter_feed_result(convd2, &string, &result);
113 mbfl_string_clear(&string);
/PHP_TRUNK/ext/mbstring/oniguruma/
H A Dreggnu.c44 re_adjust_startpos(regex_t* reg, const char* string, int size, argument
49 UChar *s = (UChar* )string + startpos;
52 p = onigenc_get_right_adjust_char_head(reg->enc, (UChar* )string, s);
55 p = ONIGENC_LEFT_ADJUST_CHAR_HEAD(reg->enc, (UChar* )string, s);
57 return p - (UChar* )string;
72 re_search(regex_t* bufp, const char* string, int size, int startpos, int range, argument
75 return onig_search(bufp, (UChar* )string, (UChar* )(string + size),
76 (UChar* )(string + startpos),
77 (UChar* )(string
[all...]
/PHP_TRUNK/ext/pcre/pcrelib/
H A Dpcre_valid_utf8.c51 * Validate a UTF-8 string *
55 check that a supposed UTF-8 string is actually valid. The early check means
56 that subsequent code can assume it is dealing with a valid string. The check
58 invalid string are then undefined.
72 PCRE_UTF8_ERR1 Missing 1 byte at the end of the string
73 PCRE_UTF8_ERR2 Missing 2 bytes at the end of the string
74 PCRE_UTF8_ERR3 Missing 3 bytes at the end of the string
75 PCRE_UTF8_ERR4 Missing 4 bytes at the end of the string
76 PCRE_UTF8_ERR5 Missing 5 bytes at the end of the string
96 string point
105 valid_utf(PCRE_PUCHAR string, int length, int *erroroffset) argument
[all...]
H A Dpcreposix.c83 REG_BADRPT, /* operand of unlimited repeat could match the empty string */
123 REG_BADPAT, /* invalid UTF-8 string */
159 REG_BADPAT, /* invalid UTF-16 string (should not occur) */
163 REG_BADPAT, /* invalid UTF-32 string (should not occur) */
204 * Translate error code to string *
320 regexec(const regex_t *preg, const char *string, size_t nmatch, argument
337 /* When no string data is being returned, or no vector has been passed in which
360 string, not how it is matched". That is why the "so" value is used to bump the
371 eo = (int)strlen(string);
374 rc = pcre_exec((const pcre *)preg->re_pcre, NULL, string
[all...]
/PHP_TRUNK/ext/spl/
H A Dspl.php177 function spl_autoload(string $class_name, string $file_extensions = NULL) {/**/};
185 function spl_autoload_call(string $class_name) {/**/};
214 function spl_autoload_register(string $autoload_function = "spl_autoload", $throw = true) {/**/};
223 function spl_autoload_unregister(string $autoload_function = "spl_autoload") {/**/};
260 /** The string representations as generated during construction */
261 private $string; variable
292 $this->string = StringFormat($this); variable
330 /** @return the stack trace as string
336 /** @return string representatio
[all...]
/PHP_TRUNK/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_string.c43 * string object
46 mbfl_string_init(mbfl_string *string) argument
48 if (string) {
49 string->no_language = mbfl_no_language_uni;
50 string->no_encoding = mbfl_no_encoding_pass;
51 string->val = (unsigned char*)NULL;
52 string->len = 0;
57 mbfl_string_init_set(mbfl_string *string, mbfl_language_id no_language, mbfl_encoding_id no_encoding) argument
59 if (string) {
60 string
68 mbfl_string_clear(mbfl_string *string) argument
[all...]
/PHP_TRUNK/ext/intl/grapheme/
H A Dgrapheme_util.c77 * of the string
88 * needed to stop that many chars from the end of the string
150 STRPOS_CHECK_STATUS(status, "Error converting input string to UTF-16");
154 STRPOS_CHECK_STATUS(status, "Error converting needle string to UTF-16");
197 STRPOS_CHECK_STATUS(status, "Error looking up string");
274 int32_t grapheme_count_graphemes(UBreakIterator *bi, UChar *string, int32_t string_len) argument
280 ubrk_setText(bi, string, string_len, &status);
337 /* {{{ grapheme_strrpos_ascii: borrowed from the php ext/standard/string.c */
H A Dgrapheme_string.c53 /* {{{ proto size_t grapheme_strlen(string str)
54 Get number of graphemes in a string */
57 char* string; local
64 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &string, &string_len) == FAILURE) {
70 ret_len = grapheme_ascii_check((unsigned char *)string, string_len);
75 /* convert the string to UTF-16. */
77 intl_convert_utf8_to_utf16(&ustring, &ustring_len, string, string_len, &status );
84 intl_error_set_custom_msg( NULL, "Error converting input string to UTF-16", 0 );
105 /* {{{ proto int grapheme_strpos(string haystack, string needl
[all...]
/PHP_TRUNK/ext/xmlrpc/libxmlrpc/
H A Dsimplestring.c68 * Why would I write yet another string API? Because I couldn't find any that were
82 #include <string.h>
95 * void simplestring_init(simplestring* string)
97 * initialize string
99 * string - pointer to a simplestring struct that will be initialized
108 void simplestring_init(simplestring* string) { argument
109 memset(string, 0, sizeof(simplestring));
113 static void simplestring_init_str(simplestring* string) { argument
114 string->str = (char*)malloc(SIMPLESTRING_INCR);
115 if(string
142 simplestring_clear(simplestring* string) argument
167 simplestring_free(simplestring* string) argument
[all...]
/PHP_TRUNK/ext/zip/lib/
H A Dzip_string.c2 zip_string.c -- string handling (with encoding)
37 #include <string.h>
88 _zip_string_get(struct zip_string *string, zip_uint32_t *lenp, zip_flags_t flags, struct zip_error *error) argument
92 if (string == NULL) {
100 if (string->encoding == ZIP_ENCODING_UNKNOWN)
101 _zip_guess_encoding(string, ZIP_ENCODING_UNKNOWN);
104 && string->encoding != ZIP_ENCODING_ASCII && string->encoding != ZIP_ENCODING_UTF8_KNOWN)
105 || (string->encoding == ZIP_ENCODING_CP437)) {
106 if (string
[all...]
/PHP_TRUNK/Zend/
H A Dzend_multibyte.c43 static const zend_encoding *dummy_encoding_detector(const unsigned char *string, size_t length, const zend_encoding **list, size_t list_size) argument
143 ZEND_API const zend_encoding *zend_multibyte_encoding_detector(const unsigned char *string, size_t length, const zend_encoding **list, size_t list_size) argument
145 return multibyte_functions.encoding_detector(string, length, list, list_size);
/PHP_TRUNK/ext/com_dotnet/
H A Dcom_olechar.c33 PHP_COM_DOTNET_API OLECHAR *php_com_string_to_olestring(char *string, size_t string_len, int codepage) argument
41 string_len = MultiByteToWideChar(codepage, flags, string, -1, NULL, 0);
49 /* XXX if that's a real multibyte string, olestring is obviously allocated excessively.
52 ok = MultiByteToWideChar(codepage, flags, string, (int)string_len, olestring, (int)string_len);
66 "Could not convert string to unicode: `%s'", msg);
76 char *string; local
83 string = (char*)safe_emalloc(length, sizeof(char), 0);
84 length = WideCharToMultiByte(codepage, 0, olestring, -1, string, length, NULL, NULL);
87 string = (char*)emalloc(sizeof(char));
88 *string
[all...]
/PHP_TRUNK/ext/mbstring/
H A Dmb_gpc.c201 mbfl_string string, resvar, resval; local
206 mbfl_string_init_set(&string, info->to_language, info->to_encoding->no_encoding);
275 string.val = (unsigned char *)val_list[n];
276 string.len = len_list[n];
277 if (mbfl_encoding_detector_feed(identd, &string)) {
308 string.no_encoding = from_encoding->no_encoding;
312 string.val = (unsigned char *)val_list[n];
313 string.len = len_list[n];
314 if (convd != NULL && mbfl_buffer_converter_feed_result(convd, &string, &resvar) != NULL) {
320 string
[all...]
/PHP_TRUNK/ext/standard/
H A Dscanf.c295 * Parse the format string and verify that it is properly formed
305 * format The format string.
322 * is assigned to by the format string. We use this to detect if
356 * in the same format string.
478 php_error_docref(NULL, E_WARNING, "Unmatched [ in format string");
570 * string literal string to be processed
571 * format format string
578 PHPAPI int php_sscanf_internal( char *string, char *format, argument
608 zend_printf("<br>in sscanf_internal : <br> string i
[all...]
H A Dinfo.c283 PHPAPI zend_string *php_info_html_esc(char *string) argument
285 return php_escape_html_entities((unsigned char *) string, strlen(string), 0, ENT_QUOTES, NULL);
1107 /* {{{ proto string phpversion([string extension])
1146 /* {{{ proto string php_sapi_name(void)
1163 /* {{{ proto string php_uname(void)
1178 /* {{{ proto string php_ini_scanned_files(void)
1179 Return comma-separated string of .ini files parsed from the additional ini dir */
1194 /* {{{ proto string php_ini_loaded_fil
[all...]
/PHP_TRUNK/ext/sockets/
H A Dsockaddr_conv.c15 /* Sets addr by hostname, or by ip in string form (AF_INET6) */
16 int php_set_inet6_addr(struct sockaddr_in6 *sin6, char *string, php_socket *php_sock) /* {{{ */ argument
23 char *scope = strchr(string, '%');
25 if (inet_pton(AF_INET6, string, &tmp)) {
37 getaddrinfo(string, NULL, &hints, &addrinfo);
84 /* Sets addr by hostname, or by ip in string form (AF_INET) */
85 int php_set_inet_addr(struct sockaddr_in *sin, char *string, php_socket *php_sock) /* {{{ */ argument
90 if (inet_aton(string, &tmp)) {
93 if (strlen(string) > MAXFQDNLEN || ! (host_entry = gethostbyname(string))) {
115 php_set_inet46_addr(php_sockaddr_storage *ss, socklen_t *ss_len, char *string, php_socket *php_sock) argument
[all...]
/PHP_TRUNK/ext/xsl/
H A Dxsltprocessor.c107 Translates a string to a XPath Expression */
110 const xmlChar *string = (const xmlChar *)str; local
115 str_len = xmlStrlen(string) + 3;
117 if (xmlStrchr(string, '"')) {
118 if (xmlStrchr(string, '\'')) {
119 php_error_docref(NULL, E_WARNING, "Cannot create XPath expression (string contains both quote and double-quotes)");
123 snprintf((char*)value, str_len, "'%s'", string);
126 snprintf((char *)value, str_len, "\"%s\"", string);
303 php_error_docref(NULL, E_WARNING, "Handler name must be a string");
328 /* Push an empty string, s
[all...]
/PHP_TRUNK/sapi/cli/
H A Dps_title.c38 #include <string.h>
71 * assign PS_STRINGS->ps_argvstr = "string"
74 * assign argv[0] = "string"
80 * push the string out as the name of a Windows event
124 static size_t ps_buffer_cur_len; /* actual string length in ps_buffer */
214 * argument string if the argv storage has been clobbered meanwhile.
395 * Returns the current ps_buffer value into string. On some platforms
396 * the string will not be null-terminated, so return the effective
400 int get_ps_title(int *displen, const char** string) argument
427 *string
[all...]

Completed in 74 milliseconds

12