core/smn_string.cpp
changeset 1406 f5c07ec3c052
parent 1360 962ecf7c9d37
child 1936 89d6e5038933
     1.1 --- a/core/smn_string.cpp	Tue Sep 11 12:29:58 2007 +0000
     1.2 +++ b/core/smn_string.cpp	Tue Sep 11 15:10:18 2007 +0000
     1.3 @@ -33,7 +33,7 @@
     1.4  #include <stdlib.h>
     1.5  #include "sm_globals.h"
     1.6  #include "sm_stringutil.h"
     1.7 -#include "TextParsers.h"
     1.8 +#include <ITextParsers.h>
     1.9  #include <ctype.h>
    1.10  
    1.11  inline const char *_strstr(const char *str, const char *substr)
    1.12 @@ -294,7 +294,7 @@
    1.13  
    1.14  	const char *inptr = input;
    1.15  	/* Eat up whitespace */
    1.16 -	while (*inptr != '\0' && IsWhitespace(inptr))
    1.17 +	while (*inptr != '\0' && textparsers->IsWhitespace(inptr))
    1.18  	{
    1.19  		inptr++;
    1.20  	}
    1.21 @@ -329,7 +329,7 @@
    1.22  	} else {
    1.23  		start = inptr;
    1.24  		/* Read input until we reach a space */
    1.25 -		while (*inptr != '\0' && !IsWhitespace(inptr))
    1.26 +		while (*inptr != '\0' && !textparsers->IsWhitespace(inptr))
    1.27  		{
    1.28  			/* Update the end point, increment the stream. */
    1.29  			end = inptr++;
    1.30 @@ -356,7 +356,7 @@
    1.31  	}
    1.32  
    1.33  	/* Consume more of the string until we reach non-whitespace */
    1.34 -	while (*inptr != '\0' && IsWhitespace(inptr))
    1.35 +	while (*inptr != '\0' && textparsers->IsWhitespace(inptr))
    1.36  	{
    1.37  		inptr++;
    1.38  	}
    1.39 @@ -502,7 +502,7 @@
    1.40  	char *end = str + chars - 1;
    1.41  
    1.42  	/* Iterate backwards through string until we reach first non-whitespace char */
    1.43 -	while (end >= str && IsWhitespace(end))
    1.44 +	while (end >= str && textparsers->IsWhitespace(end))
    1.45  	{
    1.46  		end--;
    1.47  	}
    1.48 @@ -511,7 +511,7 @@
    1.49  	*(end + 1) = '\0';
    1.50  
    1.51  	/* Iterate forwards through string until first non-whitespace char is reached */
    1.52 -	while (IsWhitespace(str))
    1.53 +	while (textparsers->IsWhitespace(str))
    1.54  	{
    1.55  		str++;
    1.56  	}