From c13647b77a1a52aef060aa7368ed84d5e33dcde5 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 21 Jul 2009 08:29:51 +0000 Subject: Replacing SString with std::string. --- src/LexSpice.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/LexSpice.cxx') diff --git a/src/LexSpice.cxx b/src/LexSpice.cxx index b2953c001..6aa2e8fdc 100644 --- a/src/LexSpice.cxx +++ b/src/LexSpice.cxx @@ -10,6 +10,8 @@ #include #include +#include + #include "Platform.h" #include "Accessor.h" @@ -17,7 +19,6 @@ #include "PropSet.h" #include "KeyWords.h" #include "SciLexer.h" -#include "SString.h" #ifdef SCI_NAMESPACE using namespace Scintilla; @@ -75,7 +76,7 @@ static void ColouriseDelimiter(StyleContext& sc, bool& apostropheStartsAttribute static void ColouriseNumber(StyleContext& sc, bool& apostropheStartsAttribute) { apostropheStartsAttribute = true; - SString number; + std::string number; sc.SetState(SCE_SPICE_NUMBER); // Get all characters up to a delimiter or a separator, including points, but excluding // double points (ranges). @@ -104,7 +105,7 @@ static void ColouriseWhiteSpace(StyleContext& sc, bool& ) { static void ColouriseWord(StyleContext& sc, WordList& keywords, WordList& keywords2, WordList& keywords3, bool& apostropheStartsAttribute) { apostropheStartsAttribute = true; sc.SetState(SCE_SPICE_IDENTIFIER); - SString word; + std::string word; while (!sc.atLineEnd && !IsSeparatorOrDelimiterCharacter(sc.ch)) { word += static_cast(tolower(sc.ch)); sc.Forward(); -- cgit v1.2.3