diff options
author | nyamatongwe <devnull@localhost> | 2001-10-28 04:39:23 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2001-10-28 04:39:23 +0000 |
commit | b6272aec16732b184844bd2773f410f3c0a152dd (patch) | |
tree | 219ef4a2b3d794cebeedb9a0d3baa7e79cb9a1bb /src/Document.cxx | |
parent | 32056de116bf65368ccff2e887d29fbf81075bed (diff) | |
download | scintilla-mirror-b6272aec16732b184844bd2773f410f3c0a152dd.tar.gz |
Fixed Platform changes for GTK+ and hid most of the implementation of
Surface.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r-- | src/Document.cxx | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index 213a72d6a..806f61f19 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -217,7 +217,6 @@ bool Document::IsCrLf(int pos) { return (cb.CharAt(pos) == '\r') && (cb.CharAt(pos + 1) == '\n'); } -#if PLAT_WIN bool Document::IsDBCS(int pos) { if (dbcsCodePage) { if (SC_CP_UTF8 == dbcsCodePage) { @@ -241,13 +240,6 @@ bool Document::IsDBCS(int pos) { } return false; } -#else -// PLAT_GTK or PLAT_WX -// TODO: support DBCS under GTK+ and WX -bool Document::IsDBCS(int) { - return false; -} -#endif int Document::LenChar(int pos) { if (IsCrLf(pos)) { @@ -300,7 +292,6 @@ int Document::MovePositionOutsideChar(int pos, int moveDir, bool checkLineEnd) { // Not between CR and LF -#if PLAT_WIN if (dbcsCodePage) { if (SC_CP_UTF8 == dbcsCodePage) { unsigned char ch = static_cast<unsigned char>(cb.CharAt(pos)); @@ -327,7 +318,6 @@ int Document::MovePositionOutsideChar(int pos, int moveDir, bool checkLineEnd) { else atLeadByte = false; startLine++; - //Platform::DebugPrintf("DBCS %s\n", atlead ? "D" : "-"); } @@ -340,7 +330,6 @@ int Document::MovePositionOutsideChar(int pos, int moveDir, bool checkLineEnd) { } } } -#endif return pos; } |