diff options
author | nyamatongwe <unknown> | 2009-07-21 08:29:51 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-07-21 08:29:51 +0000 |
commit | c13647b77a1a52aef060aa7368ed84d5e33dcde5 (patch) | |
tree | d2212da98b16a084ef3e4d9eba4382c313f60be9 /src/LexSpice.cxx | |
parent | 74fc1b126280c1f928dd8a8fb54bc174b92187b4 (diff) | |
download | scintilla-mirror-c13647b77a1a52aef060aa7368ed84d5e33dcde5.tar.gz |
Replacing SString with std::string.
Diffstat (limited to 'src/LexSpice.cxx')
-rw-r--r-- | src/LexSpice.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
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 <string.h> #include <stdio.h> +#include <string> + #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<char>(tolower(sc.ch)); sc.Forward(); |