Added js_SkipWhiteSpace.

This commit is contained in:
waldemar 1998-06-10 21:11:00 +00:00
parent 797790e8bd
commit dc2efa678e
2 changed files with 15 additions and 0 deletions

View File

@ -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)
{

View File

@ -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