- readded the >=0x81 equivalent until I figure out where the script engine is 'being naughty' O.o

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9547 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
FlavioJS 2006-12-21 03:14:41 +00:00
parent cab81204c6
commit 45036c5c06

View File

@ -502,8 +502,12 @@ static const char *skip_word(const char *p)
//# Changing from unsigned char to signed char makes p never be able to go above 0x81, but what IS 0x81 for? [Skotlex] //# Changing from unsigned char to signed char makes p never be able to go above 0x81, but what IS 0x81 for? [Skotlex]
//# It's for multibyte encodings like Shift-JIS. Unfortunately this can be problematic for singlebyte encodings. //# It's for multibyte encodings like Shift-JIS. Unfortunately this can be problematic for singlebyte encodings.
// Using (*p)>>7 would yield the appropriate result but it's better to restrict words to ASCII characters only. [FlavioJS] // Using (*p)>>7 would yield the appropriate result but it's better to restrict words to ASCII characters only. [FlavioJS]
while( ISALNUM(*p) || *p == '_' ) while( ISALNUM(*p) || *p == '_' || (*p)>>7 )
p++; {
if( (*p)>>7 ) // readded the >=0x81 equivalent until I figure out where the script engine is 'being naughty' O.o [FlavioJS]
++p;
++p;
}
// postfix // postfix
if(*p=='$') p++; // •¶Žš—ñ•Ï<E280A2> if(*p=='$') p++; // •¶Žš—ñ•Ï<E280A2>