2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[#608] Fixed typos

This commit is contained in:
Thomas Markwalder
2020-03-04 08:22:50 -05:00
parent b219c2dd9f
commit 5f6ab0e6a4
3 changed files with 5 additions and 5 deletions

View 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) {

View 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.
///

View 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,");