Turi Create  4.0
parser_impl::parser_config Struct Reference

#include <core/data/flexible_type/string_parser.hpp>

Public Attributes

std::string restrictions
 
std::string delimiter
 
bool use_escape_char = true
 Whether escape char should be used.
 
char escape_char = '\\'
 The character to use for an escape character.
 
char double_quote = true
 
bool only_raw_string_substitutions = false
 

Detailed Description

The string parsing configuration.

Definition at line 25 of file string_parser.hpp.

Member Data Documentation

◆ delimiter

std::string parser_impl::parser_config::delimiter

If the delimiter string is seen anywhere outside of a quoted string, the string will be terminated.

Definition at line 31 of file string_parser.hpp.

◆ double_quote

char parser_impl::parser_config::double_quote = true

whether double quotes inside of a quote are treated as a single quote. i.e. """hello""" => "hello"

Definition at line 39 of file string_parser.hpp.

◆ only_raw_string_substitutions

bool parser_impl::parser_config::only_raw_string_substitutions = false

If this is set (defaults to false), then the true/false/na substitutions are only permitted on raw unparsed strings; that is strings before dequoting, de-escaping, etc.

Definition at line 50 of file string_parser.hpp.

◆ restrictions

std::string parser_impl::parser_config::restrictions

If any of these character occurs outside of quoted string, the string will be terminated

Definition at line 28 of file string_parser.hpp.


The documentation for this struct was generated from the following file: