]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#608] Fixed typos
authorThomas Markwalder <tmark@isc.org>
Wed, 4 Mar 2020 13:22:50 +0000 (08:22 -0500)
committerThomas Markwalder <tmark@isc.org>
Wed, 4 Mar 2020 13:26:14 +0000 (08:26 -0500)
src/lib/util/csv_file.cc
src/lib/util/csv_file.h
src/lib/util/tests/csv_file_unittest.cc

index 8f939537e057071cafd907c8980463af4e11a623..6db97620c8d97c433beb7450885ea7e5c578bb55 100644 (file)
@@ -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) {
index 9bf64f13d081c37adae203f4eb72de0131b3b6b0..b90cb5b523a120977dcf1d0c7034a30af1bcad3b 100644 (file)
@@ -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.
     ///
index 957bf681e91814fc82520c1ace8d51c4c689ac05..7ae6b643bf77ae1f56fa79dc8fbdf94085eda4f6 100644 (file)
@@ -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,");