mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Added js_SkipWhiteSpace.
This commit is contained in:
parent
797790e8bd
commit
dc2efa678e
@ -2238,6 +2238,15 @@ js_strchr(const jschar *s, jschar c)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const jschar *
|
||||
js_SkipWhiteSpace(const jschar *s)
|
||||
{
|
||||
/* JS_ISSPACE is false on a null. */
|
||||
while (JS_ISSPACE(*s))
|
||||
s++;
|
||||
return s;
|
||||
}
|
||||
|
||||
jschar *
|
||||
js_strncpy(jschar *t, const jschar *s, size_t n)
|
||||
{
|
||||
|
@ -232,6 +232,12 @@ js_strchr(const jschar *s, jschar c);
|
||||
extern jschar *
|
||||
js_strncpy(jschar *t, const jschar *s, size_t n);
|
||||
|
||||
/*
|
||||
* Return s advanced past any Unicode white space characters.
|
||||
*/
|
||||
extern const jschar *
|
||||
js_SkipWhiteSpace(const jschar *s);
|
||||
|
||||
/*
|
||||
* Inflate bytes to JS chars and vice versa. Report out of memory via cx
|
||||
* and return null on error, otherwise return the jschar or byte vector that
|
||||
|
Loading…
Reference in New Issue
Block a user