Fix comments, remove redundant test
git-svn-id: https://cld2.googlecode.com/svn/trunk@90 b252ecd4-b096-bf77-eb8e-91563289f87e
This commit is contained in:
@@ -489,7 +489,7 @@ int ScanToLetterOrSpecial(const char* src, int len) {
|
||||
|
||||
// src points to non-letter, such as tag-opening '<'
|
||||
// Return length from here to next possible letter
|
||||
// On eos or another < before >, return 1
|
||||
// On another < before >, return 1
|
||||
// advances <tag>
|
||||
// | |
|
||||
// advances <tag> ... </tag> for <script> <style>
|
||||
@@ -497,9 +497,9 @@ int ScanToLetterOrSpecial(const char* src, int len) {
|
||||
// advances <!-- ... <tag> ... -->
|
||||
// | |
|
||||
// advances <tag
|
||||
// || (1)
|
||||
// | | end of string
|
||||
// advances <tag <tag2>
|
||||
// || (1)
|
||||
// ||
|
||||
int ScanToPossibleLetter(const char* isrc, int len, int max_exit_state) {
|
||||
const uint8* src = reinterpret_cast<const uint8*>(isrc);
|
||||
const uint8* srclimit = src + len;
|
||||
@@ -1023,7 +1023,7 @@ bool ScriptScanner::GetOneScriptSpan(LangSpan* span) {
|
||||
}
|
||||
|
||||
// Force Latin, Cyrillic, Armenian, Greek scripts to be lowercase
|
||||
// List changes with each version of Unicode, so always lowercase
|
||||
// List changes with each version of Unicode, so just always lowercase
|
||||
// Unicode 6.2.0:
|
||||
// ARMENIAN COPTIC CYRILLIC DESERET GEORGIAN GLAGOLITIC GREEK LATIN
|
||||
void ScriptScanner::LowerScriptSpan(LangSpan* span) {
|
||||
@@ -1031,11 +1031,6 @@ void ScriptScanner::LowerScriptSpan(LangSpan* span) {
|
||||
// lowercasing an entity such as Á
|
||||
// We only need to do this for Latn and Cyrl scripts
|
||||
map2uplow_.Clear();
|
||||
if (true ||
|
||||
(span->ulscript == ULScript_Latin) ||
|
||||
(span->ulscript == ULScript_Cyrillic) ||
|
||||
(span->ulscript == ULScript_Armenian) ||
|
||||
(span->ulscript == ULScript_Greek)) {
|
||||
// Full Unicode lowercase of the entire buffer, including
|
||||
// four pad bytes off the end.
|
||||
// Ahhh. But the last byte 0x00 is not interchange-valid, so we do 3 pad
|
||||
@@ -1051,9 +1046,6 @@ void ScriptScanner::LowerScriptSpan(LangSpan* span) {
|
||||
script_buffer_lower_[filled] = '\0';
|
||||
span->text = script_buffer_lower_;
|
||||
span->text_bytes = filled - 3;
|
||||
} else {
|
||||
map2uplow_.Copy(span->text_bytes + 3);
|
||||
}
|
||||
map2uplow_.Reset();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user