OpenTTD Source  20240919-master-gdf0233f4c2
string_func.cpp File Reference
#include "../stdafx.h"
#include "../3rdparty/catch2/catch.hpp"
#include "../string_func.h"

Go to the source code of this file.

Functions

 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")
 

Variables

static const std::vector< std::pair< std::string, std::string > > _str_trim_testcases
 

Detailed Description

Test functionality from string_func.

Definition in file string_func.cpp.

Variable Documentation

◆ _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 388 of file string_func.cpp.