// 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) {
/// 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
/// @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.
///
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,");