From: Thomas Markwalder Date: Wed, 4 Mar 2020 13:22:50 +0000 (-0500) Subject: [#608] Fixed typos X-Git-Tag: Kea-1.7.6~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f6ab0e6a4ed587f89cd35e94b7ba67fa22449b4;p=thirdparty%2Fkea.git [#608] Fixed typos --- diff --git a/src/lib/util/csv_file.cc b/src/lib/util/csv_file.cc index 8f939537e0..6db97620c8 100644 --- a/src/lib/util/csv_file.cc +++ b/src/lib/util/csv_file.cc @@ -432,10 +432,10 @@ CSVRow::escapeCharacters(const std::string& orig_str, const std::string& charact // We add the first character of the escape tag to the list of // characters to escape. This ensures input which happens to - // be valid esacpe sequences will be escaped. + // be valid escape sequences will be escaped. std::string escape_chars(characters + escape_tag[0]); - // Check for a first occurence. If none, just return a + // Check for a first occurrence. If none, just return a // copy of the original. char_pos = orig_str.find_first_of(escape_chars, prev_pos); if (char_pos == std::string::npos) { diff --git a/src/lib/util/csv_file.h b/src/lib/util/csv_file.h index 9bf64f13d0..b90cb5b523 100644 --- a/src/lib/util/csv_file.h +++ b/src/lib/util/csv_file.h @@ -117,7 +117,7 @@ public: /// values. Escaped characters embedded using the following format: /// /// This function fetches the value at the given index and passes it - /// into CSVRow::unesacpeCharacters which replaces any escaped special + /// into CSVRow::unescapeCharacters which replaces any escaped special /// characters with their unescaped form. /// /// @param at Index of the value in the container. The values are indexed @@ -202,7 +202,7 @@ public: /// @brief Replaces the value at the specified index with a value that has /// had special characters escaped /// - /// This function first calls @c CSVRow::esacpeCharacters to replace + /// This function first calls @c CSVRow::escapeCharacters to replace /// special characters with their escaped form. It then sets the value /// to be rendered using @c CSVRow::render function. /// diff --git a/src/lib/util/tests/csv_file_unittest.cc b/src/lib/util/tests/csv_file_unittest.cc index 957bf681e9..7ae6b643bf 100644 --- a/src/lib/util/tests/csv_file_unittest.cc +++ b/src/lib/util/tests/csv_file_unittest.cc @@ -16,7 +16,7 @@ namespace { using namespace isc::util; -// This test exercizes escaping and unescaping of characters. +// This test exercises escaping and unescaping of characters. TEST(CSVRowTest, escapeUnescape) { std::string orig(",FO^O\\,B?,AR,");