From c8fcec9e260ac371978e2ca4a0212449a35d415b Mon Sep 17 00:00:00 2001 From: "andrewhayden@google.com" Date: Wed, 29 Oct 2014 12:09:40 +0000 Subject: [PATCH] Correct minor comment typos git-svn-id: https://cld2.googlecode.com/svn/trunk@177 b252ecd4-b096-bf77-eb8e-91563289f87e --- internal/compact_lang_det.cc | 6 +++--- public/compact_lang_det.h | 22 +++++++++++----------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/internal/compact_lang_det.cc b/internal/compact_lang_det.cc index 045e0b2..51585a2 100644 --- a/internal/compact_lang_det.cc +++ b/internal/compact_lang_det.cc @@ -36,7 +36,7 @@ namespace CLD2 { // Scan interchange-valid UTF-8 bytes and detect most likely language // If the input is in fact not valid UTF-8, this returns immediately with -// the result value UNKNOWN_LANGUAGE and is_reliable set false. +// the result value UNKNOWN_LANGUAGE and is_reliable set to false. // // In all cases, valid_prefix_bytes will be set to the number of leading // bytes that are valid UTF-8. If this is < buffer_length, there is invalid @@ -309,7 +309,7 @@ Language ExtDetectLanguageSummary( // buffer in language-dependant ways. // // If the input is in fact not valid UTF-8, this returns immediately with -// the result value UNKNOWN_LANGUAGE and is_reliable set false. +// the result value UNKNOWN_LANGUAGE and is_reliable set to false. // // In all cases, valid_prefix_bytes will be set to the number of leading // bytes that are valid UTF-8. If this is < buffer_length, there is invalid @@ -355,7 +355,7 @@ Language ExtDetectLanguageSummaryCheckUTF8( } // Use this one ONLY if you can prove the the input text is valid UTF-8 by -// design because it went thorough a known-good conversion program. +// design because it went through a known-good conversion program. // // Hints are collected into a struct. // Flags are passed in (normally zero). diff --git a/public/compact_lang_det.h b/public/compact_lang_det.h index ecd75e9..4a6f366 100644 --- a/public/compact_lang_det.h +++ b/public/compact_lang_det.h @@ -70,7 +70,7 @@ namespace CLD2 { // NOTE: If you cannot prove the the input text is valid UTF-8 by design because -// it went thorough a known-good conversion program, call one of the *CheckUTF8 +// it went through a known-good conversion program, call one of the *CheckUTF8 // routines. For example, never trust raw user-supplied bytes. It is especially // important to do a UTF8-to-UTF8 conversion on raw bytes that claim to be // UTF-8, using a converter that guarantees to produce valid UTF-8, turning @@ -140,7 +140,7 @@ namespace CLD2 { static const int32 kMaxResultChunkBytes = 0x7fffffff; // Note: this was initially over-optimized to fit into 8 bytes, - // causing too much work to deal with with greater than 16-bit byte lengths. + // causing too much work to deal with with greater than 16-bit byte lengths. // For returning a vector of per-language pieces of the input buffer // Unreliable and too-short are mapped to UNKNOWN_LANGUAGE typedef struct { @@ -159,7 +159,7 @@ namespace CLD2 { // Scan interchange-valid UTF-8 bytes and detect most likely language // If the input is in fact not valid UTF-8, this returns immediately with - // the result value UNKNOWN_LANGUAGE and is_reliable set false. + // the result value UNKNOWN_LANGUAGE and is_reliable set to false. // // In all cases, valid_prefix_bytes will be set to the number of leading // bytes that are valid UTF-8. If this is < buffer_length, there is invalid @@ -172,7 +172,7 @@ namespace CLD2 { int* valid_prefix_bytes); // Use this one ONLY if you can prove the the input text is valid UTF-8 by - // design because it went thorough a known-good conversion program. + // design because it went through a known-good conversion program. // Scan interchange-valid UTF-8 bytes and detect most likely language Language DetectLanguage( const char* buffer, @@ -181,7 +181,7 @@ namespace CLD2 { bool* is_reliable); // Use this one ONLY if you can prove the the input text is valid UTF-8 by - // design because it went thorough a known-good conversion program. + // design because it went through a known-good conversion program. // Scan interchange-valid UTF-8 bytes and detect list of top 3 languages. // language3[0] is usually also the return value Language DetectLanguageSummary( @@ -194,7 +194,7 @@ namespace CLD2 { bool* is_reliable); // Use this one ONLY if you can prove the the input text is valid UTF-8 by - // design because it went thorough a known-good conversion program. + // design because it went through a known-good conversion program. // Same as above, with hints supplied // Scan interchange-valid UTF-8 bytes and detect list of top 3 languages. // language3[0] is usually also the return value @@ -211,7 +211,7 @@ namespace CLD2 { bool* is_reliable); // Use this one ONLY if you can prove the the input text is valid UTF-8 by - // design because it went thorough a known-good conversion program. + // design because it went through a known-good conversion program. // Scan interchange-valid UTF-8 bytes and detect list of top 3 extended // languages. // @@ -229,7 +229,7 @@ namespace CLD2 { bool* is_reliable); // Use this one ONLY if you can prove the the input text is valid UTF-8 by - // design because it went thorough a known-good conversion program. + // design because it went through a known-good conversion program. // Same as above, with hints supplied // Scan interchange-valid UTF-8 bytes and detect list of top 3 extended // languages. @@ -251,7 +251,7 @@ namespace CLD2 { bool* is_reliable); // Use this one ONLY if you can prove the the input text is valid UTF-8 by - // design because it went thorough a known-good conversion program. + // design because it went through a known-good conversion program. // Same as above, and also returns 3 internal language scores as a ratio to // normal score for real text in that language. Scores close to 1.0 indicate // normal text, while scores far away from 1.0 indicate badly-skewed text or @@ -286,7 +286,7 @@ namespace CLD2 { // buffer in language-dependant ways. // // If the input is in fact not valid UTF-8, this returns immediately with - // the result value UNKNOWN_LANGUAGE and is_reliable set false. + // the result value UNKNOWN_LANGUAGE and is_reliable set to false. // // In all cases, valid_prefix_bytes will be set to the number of leading // bytes that are valid UTF-8. If this is < buffer_length, there is invalid @@ -306,7 +306,7 @@ namespace CLD2 { int* valid_prefix_bytes); // Use this one ONLY if you can prove the the input text is valid UTF-8 by - // design because it went thorough a known-good conversion program. + // design because it went through a known-good conversion program. // // Hints are collected into a struct. // Flags are passed in (normally zero).