php-internal-docs
8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
fpm_str.h
Go to the documentation of this file.
1
/* (c) 2007,2008 Andrei Nigmatulin */
2
3
#ifndef FPM_STR_H
4
#define FPM_STR_H 1
5
6
static
inline
char
*str_purify_filename(
char
*dst,
char
*src,
size_t
size
)
/* {{{ */
7
{
8
char
*d, *
end
;
9
10
d = dst;
11
end
= dst +
size
- 1;
12
13
for
(; d <
end
&& *src; ++d, ++src) {
14
if
(* (
unsigned
char
*) src <
' '
|| * (
unsigned
char
*) src >
'\x7f'
) {
15
*d =
'.'
;
16
}
else
{
17
*d = *src;
18
}
19
}
20
21
*d =
'\0'
;
22
23
return
d;
24
}
25
/* }}} */
26
27
#endif
size
new_type size
Definition
ffi.c:4365
end
unsigned const char * end
Definition
php_ffi.h:51
sapi
fpm
fpm
fpm_str.h
Generated on Sat Aug 23 2025 01:46:13 for php-internal-docs by
1.13.2