Evo C++ Library v0.5.1
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
StrQuoting Struct Reference

#include <evo/strscan.h>

Detailed Description

Helpers for determining quoting type to use with string data.

Public Types

enum  Type {
  tSINGLE, tDOUBLE, tBACKTICK, tSINGLE3,
  tDOUBLE3, tBACKTICK3, tBACKTICK_DEL, tERROR
}
 Quoting type. More...
 

Static Public Member Functions

static Type get (const char *data, ulong data_size)
 
static Type get (bool &optional, const char *data, ulong data_size, char delim)
 
static Type get (const char *data, ulong data_size, char delim)
 
static Type get (const char *data, ulong data_size, char delim1, char delim2)
 

Static Public Attributes

static const char DEL_CHAR = 0x7F
 DEL character. More...
 

Member Enumeration Documentation

◆ Type

enum Type

Quoting type.

Enumerator
tSINGLE 

Single-quotes: '

tDOUBLE 

Double-quotes: "

tBACKTICK 

Backtick: `

tSINGLE3 

Triple single-quotes: '''

tDOUBLE3 

Triple double-quotes: """

tBACKTICK3 

Triple backtick: ```

tBACKTICK_DEL 

Backtick followed by DEL char (7F) – last resort (rare)

tERROR 

Data not quotable (invalid text)

Member Function Documentation

◆ get() [1/4]

static Type get ( const char *  data,
ulong  data_size 
)
inlinestatic

◆ get() [2/4]

static Type get ( bool &  optional,
const char *  data,
ulong  data_size,
char  delim 
)
inlinestatic

◆ get() [3/4]

static Type get ( const char *  data,
ulong  data_size,
char  delim 
)
inlinestatic

◆ get() [4/4]

static Type get ( const char *  data,
ulong  data_size,
char  delim1,
char  delim2 
)
inlinestatic

Member Data Documentation

◆ DEL_CHAR

const char DEL_CHAR = 0x7F
static

DEL character.


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