From c040e154bc58fac262324a0c40ef5572d5ef28c8 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Thu, 18 Jun 2009 14:03:02 +0000 Subject: =?UTF-8?q?=E2=80=A2=20introduced=20inline=20function=20NSStringUT?= =?UTF-8?q?F8String()=20to=20SPStringAdditions.h=20-=20NSData=20*d=20=3D?= =?UTF-8?q?=20[aStr=20UTF8String];=20:=3D=3D=20NSData=20*d=20=3D=20NSStrig?= =?UTF-8?q?nUTF8String(aStr)=20but=20a=20tick=20faster=20=E2=80=A2=20imple?= =?UTF-8?q?mented=20NSStringUTF8String()=20in=20queryString:=20and=20for?= =?UTF-8?q?=20the=20lex=20parser=20(syntax=20highlighting)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/CMTextView.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/CMTextView.m') diff --git a/Source/CMTextView.m b/Source/CMTextView.m index 142663bd..8e891b20 100644 --- a/Source/CMTextView.m +++ b/Source/CMTextView.m @@ -2185,7 +2185,8 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse) //initialise flex yyuoffset = textRange.location; yyuleng = 0; - yy_switch_to_buffer(yy_scan_string([[[self string] substringWithRange:textRange] UTF8String])); + // yy_switch_to_buffer(yy_scan_string([[[self string] substringWithRange:textRange] UTF8String])); + yy_switch_to_buffer(yy_scan_string(NSStringUTF8String([[self string] substringWithRange:textRange]))); //now loop through all the tokens while (token=yylex()){ -- cgit v1.2.3