Test functionality from string_func.
More...
#include "../stdafx.h"
#include "../3rdparty/catch2/catch.hpp"
#include "../string_func.h"
#include "../table/control_codes.h"
Go to the source code of this file.
|
| TEST_CASE ("StrCompareIgnoreCase - std::string") |
|
| TEST_CASE ("StrCompareIgnoreCase - char pointer") |
|
| TEST_CASE ("StrCompareIgnoreCase - std::string_view") |
|
| TEST_CASE ("StrEqualsIgnoreCase - std::string") |
|
| TEST_CASE ("StrEqualsIgnoreCase - char pointer") |
|
| TEST_CASE ("StrEqualsIgnoreCase - std::string_view") |
|
| TEST_CASE ("StrStartsWithIgnoreCase - std::string") |
|
| TEST_CASE ("StrStartsWithIgnoreCase - char pointer") |
|
| TEST_CASE ("StrStartsWithIgnoreCase - std::string_view") |
|
| TEST_CASE ("StrEndsWithIgnoreCase - std::string") |
|
| TEST_CASE ("StrEndsWithIgnoreCase - char pointer") |
|
| TEST_CASE ("StrEndsWithIgnoreCase - std::string_view") |
|
| TEST_CASE ("FormatArrayAsHex") |
|
| TEST_CASE ("ConvertHexToBytes") |
|
| TEST_CASE ("StrTrimInPlace") |
|
| TEST_CASE ("StrTrimView") |
|
void | FixSCCEncoded (std::string &str, bool fix_code) |
| Scan the string for old values of SCC_ENCODED and fix it to it's new, value.
|
|
static std::string | FixSCCEncodedWrapper (const std::string &str, bool fix_code) |
|
static void | ComposePart (std::back_insert_iterator< std::string > &output, char32_t c) |
|
static void | ComposePart (std::back_insert_iterator< std::string > &output, const std::string &value) |
|
template<typename... Args> |
static std::string | Compose (Args &&... args) |
|
| TEST_CASE ("FixSCCEncoded") |
|
Test functionality from string_func.
Definition in file string_func.cpp.
◆ Compose()
template<typename... Args>
static std::string Compose |
( |
Args &&... |
args | ) |
|
|
static |
◆ ComposePart() [1/2]
static void ComposePart |
( |
std::back_insert_iterator< std::string > & |
output, |
|
|
char32_t |
c |
|
) |
| |
|
static |
◆ ComposePart() [2/2]
static void ComposePart |
( |
std::back_insert_iterator< std::string > & |
output, |
|
|
const std::string & |
value |
|
) |
| |
|
static |
◆ FixSCCEncoded()
void FixSCCEncoded |
( |
std::string & |
str, |
|
|
bool |
fix_code |
|
) |
| |
|
extern |
◆ FixSCCEncodedWrapper()
static std::string FixSCCEncodedWrapper |
( |
const std::string & |
str, |
|
|
bool |
fix_code |
|
) |
| |
|
static |
◆ TEST_CASE() [1/17]
TEST_CASE |
( |
"ConvertHexToBytes" |
| ) |
|
◆ TEST_CASE() [2/17]
TEST_CASE |
( |
"FixSCCEncoded" |
| ) |
|
◆ TEST_CASE() [3/17]
TEST_CASE |
( |
"FormatArrayAsHex" |
| ) |
|
◆ TEST_CASE() [4/17]
TEST_CASE |
( |
"StrCompareIgnoreCase - char pointer" |
| ) |
|
◆ TEST_CASE() [5/17]
TEST_CASE |
( |
"StrCompareIgnoreCase - std::string" |
| ) |
|
◆ TEST_CASE() [6/17]
TEST_CASE |
( |
"StrCompareIgnoreCase - std::string_view" |
| ) |
|
◆ TEST_CASE() [7/17]
TEST_CASE |
( |
"StrEndsWithIgnoreCase - char pointer" |
| ) |
|
◆ TEST_CASE() [8/17]
TEST_CASE |
( |
"StrEndsWithIgnoreCase - std::string" |
| ) |
|
◆ TEST_CASE() [9/17]
TEST_CASE |
( |
"StrEndsWithIgnoreCase - std::string_view" |
| ) |
|
◆ TEST_CASE() [10/17]
TEST_CASE |
( |
"StrEqualsIgnoreCase - char pointer" |
| ) |
|
◆ TEST_CASE() [11/17]
TEST_CASE |
( |
"StrEqualsIgnoreCase - std::string" |
| ) |
|
◆ TEST_CASE() [12/17]
TEST_CASE |
( |
"StrEqualsIgnoreCase - std::string_view" |
| ) |
|
◆ TEST_CASE() [13/17]
TEST_CASE |
( |
"StrStartsWithIgnoreCase - char pointer" |
| ) |
|
◆ TEST_CASE() [14/17]
TEST_CASE |
( |
"StrStartsWithIgnoreCase - std::string" |
| ) |
|
◆ TEST_CASE() [15/17]
TEST_CASE |
( |
"StrStartsWithIgnoreCase - std::string_view" |
| ) |
|
◆ TEST_CASE() [16/17]
TEST_CASE |
( |
"StrTrimInPlace" |
| ) |
|
◆ TEST_CASE() [17/17]
TEST_CASE |
( |
"StrTrimView" |
| ) |
|
◆ _str_trim_testcases
const std::vector<std::pair<std::string, std::string> > _str_trim_testcases |
|
static |
Initial value:= {
{"a", "a"},
{" a", "a"},
{"a ", "a"},
{" a ", "a"},
{" a b c ", "a b c"},
{" ", ""}
}
Definition at line 389 of file string_func.cpp.