KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_string_utils.cpp File Reference

Go to the source code of this file.

Classes

struct  STRING_ESCAPE_TEST_CASE
 

Macros

#define BOOST_TEST_NO_MAIN
 

Functions

 BOOST_AUTO_TEST_CASE (GeneratedNetNamesUseReservedPrefixes)
 
 BOOST_AUTO_TEST_CASE (ReplaceIllegalFileNameChars_StdString_NoChange)
 
 BOOST_AUTO_TEST_CASE (ReplaceIllegalFileNameChars_StdString_PercentEncoding)
 
 BOOST_AUTO_TEST_CASE (ReplaceIllegalFileNameChars_WxString_ReplacementChar)
 
 BOOST_AUTO_TEST_CASE (ConvertPathToFileUri_UnixAbsolutePath)
 
 BOOST_AUTO_TEST_CASE (ConvertPathToFileUri_AlreadyHasScheme)
 
 BOOST_AUTO_TEST_CASE (ConvertPathToFileUri_Empty)
 
 BOOST_AUTO_TEST_CASE (ConvertPathToFileUri_Tilde)
 
 BOOST_AUTO_TEST_CASE (ConvertPathToFileUri_NonexistentPath)
 
 BOOST_AUTO_TEST_CASE (ConvertPathToFileUri_PlainText)
 
static wxString JoinPins (const std::vector< wxString > &aPins)
 
 BOOST_AUTO_TEST_CASE (StackedPinNotation_CommaInPlainNumberIsSinglePin)
 
 BOOST_AUTO_TEST_CASE (StackedPinNotation_EscapedCommaRoundTrips)
 
 BOOST_AUTO_TEST_CASE (StackedPinNotation_EscapedDashIsLiteral)
 
 BOOST_AUTO_TEST_CASE (StackedPinNotation_EscapeStackedPinItem)
 
 BOOST_AUTO_TEST_CASE (StackedPinNotation_LegacyNotationUnchanged)
 
 BOOST_AUTO_TEST_CASE (StackedPinNotation_DisplaySplitPreservesRanges)
 
 BOOST_AUTO_TEST_CASE (StackedPinNotation_LiteralBackslashPreserved)
 
 BOOST_AUTO_TEST_CASE (StackedPinNotation_EmptyIsSinglePin)
 
 BOOST_AUTO_TEST_CASE (StringEscape)
 
 BOOST_AUTO_TEST_CASE (RegexEscapeKeepsOrdinaryCharacters)
 
 BOOST_AUTO_TEST_CASE (SplitGraphemeClustersKeepsCharactersWhole)
 

Macro Definition Documentation

◆ BOOST_TEST_NO_MAIN

#define BOOST_TEST_NO_MAIN

Definition at line 21 of file test_string_utils.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/21]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_AlreadyHasScheme )

Definition at line 136 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [2/21]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_Empty )

Definition at line 142 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [3/21]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_NonexistentPath )

Definition at line 152 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [4/21]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_PlainText )

Definition at line 158 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [5/21]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_Tilde )

Definition at line 147 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [6/21]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_UnixAbsolutePath )

Definition at line 130 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [7/21]

BOOST_AUTO_TEST_CASE ( GeneratedNetNamesUseReservedPrefixes )

Definition at line 29 of file test_string_utils.cpp.

References BOOST_AUTO_TEST_CASE(), and IsAutoGeneratedNetName().

◆ BOOST_AUTO_TEST_CASE() [8/21]

BOOST_AUTO_TEST_CASE ( RegexEscapeKeepsOrdinaryCharacters )

Definition at line 359 of file test_string_utils.cpp.

References BOOST_TEST(), CTX_REGEX, and EscapeString().

◆ BOOST_AUTO_TEST_CASE() [9/21]

BOOST_AUTO_TEST_CASE ( ReplaceIllegalFileNameChars_StdString_NoChange )

Definition at line 40 of file test_string_utils.cpp.

References BOOST_TEST(), name, and ReplaceIllegalFileNameChars().

◆ BOOST_AUTO_TEST_CASE() [10/21]

BOOST_AUTO_TEST_CASE ( ReplaceIllegalFileNameChars_StdString_PercentEncoding )

Definition at line 52 of file test_string_utils.cpp.

References BOOST_TEST(), name, and ReplaceIllegalFileNameChars().

◆ BOOST_AUTO_TEST_CASE() [11/21]

BOOST_AUTO_TEST_CASE ( ReplaceIllegalFileNameChars_WxString_ReplacementChar )

Definition at line 121 of file test_string_utils.cpp.

References BOOST_TEST(), name, and ReplaceIllegalFileNameChars().

◆ BOOST_AUTO_TEST_CASE() [12/21]

BOOST_AUTO_TEST_CASE ( SplitGraphemeClustersKeepsCharactersWhole )

Definition at line 366 of file test_string_utils.cpp.

References BOOST_TEST(), expected, and SplitGraphemeClusters().

◆ BOOST_AUTO_TEST_CASE() [13/21]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_CommaInPlainNumberIsSinglePin )

◆ BOOST_AUTO_TEST_CASE() [14/21]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_DisplaySplitPreservesRanges )

◆ BOOST_AUTO_TEST_CASE() [15/21]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_EmptyIsSinglePin )

◆ BOOST_AUTO_TEST_CASE() [16/21]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_EscapedCommaRoundTrips )

◆ BOOST_AUTO_TEST_CASE() [17/21]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_EscapedDashIsLiteral )

◆ BOOST_AUTO_TEST_CASE() [18/21]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_EscapeStackedPinItem )

Definition at line 245 of file test_string_utils.cpp.

References BOOST_TEST(), and EscapeStackedPinItem().

◆ BOOST_AUTO_TEST_CASE() [19/21]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_LegacyNotationUnchanged )

◆ BOOST_AUTO_TEST_CASE() [20/21]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_LiteralBackslashPreserved )

◆ BOOST_AUTO_TEST_CASE() [21/21]

BOOST_AUTO_TEST_CASE ( StringEscape )

◆ JoinPins()

static wxString JoinPins ( const std::vector< wxString > & aPins)
static