144 |
146 |
145 NSAPI_PUBLIC int INTutil_mime_separator(char *sep); |
147 NSAPI_PUBLIC int INTutil_mime_separator(char *sep); |
146 |
148 |
147 NSAPI_PUBLIC int INTutil_itoa(int i, char *a); |
149 NSAPI_PUBLIC int INTutil_itoa(int i, char *a); |
148 |
150 |
149 NSAPI_PUBLIC int INTutil_i64toa(PRInt64 i, char *a); |
151 NSAPI_PUBLIC int INTutil_i64toa(int64_t i, char *a); |
150 |
152 |
151 |
153 |
152 NSAPI_PUBLIC |
154 NSAPI_PUBLIC |
153 int INTutil_vsprintf(char *s, register const char *fmt, va_list args); |
155 int INTutil_vsprintf(char *s, register const char *fmt, va_list args); |
154 |
156 |
184 NSAPI_PUBLIC void INTutil_random(void *buf, size_t sz); |
186 NSAPI_PUBLIC void INTutil_random(void *buf, size_t sz); |
185 |
187 |
186 NSAPI_PUBLIC PRBool INTutil_format_http_version(const char *v, int *protv_num, char *buffer, int size); |
188 NSAPI_PUBLIC PRBool INTutil_format_http_version(const char *v, int *protv_num, char *buffer, int size); |
187 |
189 |
188 NSAPI_PUBLIC int INTutil_getboolean(const char *v, int def); |
190 NSAPI_PUBLIC int INTutil_getboolean(const char *v, int def); |
189 NSAPI_PUBLIC PRIntervalTime INTutil_getinterval(const char *v, PRIntervalTime def); |
191 |
|
192 // TODO |
|
193 //NSAPI_PUBLIC PRIntervalTime INTutil_getinterval(const char *v, PRIntervalTime def); |
190 |
194 |
191 #ifdef NEED_STRCASECMP |
195 #ifdef NEED_STRCASECMP |
192 NSAPI_PUBLIC int INTutil_strcasecmp(const char *one, const char *two); |
196 NSAPI_PUBLIC int INTutil_strcasecmp(const char *one, const char *two); |
193 #endif /* NEED_STRCASECMP */ |
197 #endif /* NEED_STRCASECMP */ |
194 |
198 |
208 |
212 |
209 NSAPI_PUBLIC char *util_strlower(char *s); |
213 NSAPI_PUBLIC char *util_strlower(char *s); |
210 |
214 |
211 NSAPI_PUBLIC char *util_decrement_string(char *s); |
215 NSAPI_PUBLIC char *util_decrement_string(char *s); |
212 |
216 |
213 NSAPI_PUBLIC PRInt64 util_atoi64(const char *a); |
217 NSAPI_PUBLIC int64_t util_atoi64(const char *a); |
214 |
218 |
215 NSAPI_PUBLIC char *util_html_escape(const char *s); |
219 NSAPI_PUBLIC char *util_html_escape(const char *s); |
216 |
220 |
217 NSAPI_PUBLIC int util_qtoi(const char *q, const char **p); |
221 NSAPI_PUBLIC int util_qtoi(const char *q, const char **p); |
218 |
222 |