Public Member Functions | List of all members
StringUtils_T Class Reference

Detailed Description

This test file will contain a series of scanf checks for each of the directly tested TimeTag classes.

Definition at line 139 of file StringUtils_T.cpp.

Public Member Functions

unsigned floatFormatTest ()
 
string getFileContents (const string &fileName)
 
unsigned hexConversionTest ()
 
unsigned hexDumpDataConfigTest ()
 
unsigned hexDumpDataStreamFlagTest ()
 
unsigned hexDumpDataTest ()
 
unsigned hexToAsciiTest ()
 
unsigned justificationTest ()
 
unsigned numberToStringTest ()
 
unsigned prettyPrintTest ()
 
unsigned regularExpressionsTest ()
 
unsigned splitWithDoubleQuotesTest ()
 
unsigned splitWithQuotesTest ()
 
unsigned stringReplaceTest ()
 
unsigned stringToNumberTest ()
 
 StringUtils_T ()
 
unsigned stripLeadingTest ()
 
unsigned stripTest ()
 
unsigned stripTrailingTest ()
 
unsigned translateTest ()
 
unsigned wordTest ()
 
 ~StringUtils_T ()
 

Constructor & Destructor Documentation

◆ StringUtils_T()

StringUtils_T::StringUtils_T ( )
inline

Definition at line 142 of file StringUtils_T.cpp.

◆ ~StringUtils_T()

StringUtils_T::~StringUtils_T ( )
inline

Definition at line 143 of file StringUtils_T.cpp.

Member Function Documentation

◆ floatFormatTest()

unsigned StringUtils_T::floatFormatTest ( )
inline

Definition at line 1209 of file StringUtils_T.cpp.

◆ getFileContents()

string StringUtils_T::getFileContents ( const string &  fileName)
inline

Get the contents of a file and store it in a string. Used to get expected text results.

Definition at line 149 of file StringUtils_T.cpp.

◆ hexConversionTest()

unsigned StringUtils_T::hexConversionTest ( )
inline

Tests for the hex converters. Given strings with hex and decimal values, convert the values to the opposite type then compare with expected results.

Definition at line 455 of file StringUtils_T.cpp.

◆ hexDumpDataConfigTest()

unsigned StringUtils_T::hexDumpDataConfigTest ( )
inline

Test various output configurations for hexDumpData.

Definition at line 1047 of file StringUtils_T.cpp.

◆ hexDumpDataStreamFlagTest()

unsigned StringUtils_T::hexDumpDataStreamFlagTest ( )
inline

Test stream flags support for hexDumpData, making sure stream state is unaltered on return.

Definition at line 1016 of file StringUtils_T.cpp.

◆ hexDumpDataTest()

unsigned StringUtils_T::hexDumpDataTest ( )
inline

Test for the hexDump methods. This test is intended to verify that the output formats are correct. There are no characters that could be unique to the system configuration in these lists.

Definition at line 967 of file StringUtils_T.cpp.

◆ hexToAsciiTest()

unsigned StringUtils_T::hexToAsciiTest ( )
inline

Test for the hexDump methods.

This test is intended to verify that the unique ASCII characters are all transformed from hex and output properly.

The hexDataDump method is to display hex data in ASCII format. This output may be configured using the configHexDataDump method, or output without the comparison hex code using the printable method.

Definition at line 916 of file StringUtils_T.cpp.

◆ justificationTest()

unsigned StringUtils_T::justificationTest ( )
inline

Tests for the justification methods. Given a baseString and a filler character, the tests will justify the string to a new string of the size of the original string + 6.

Definition at line 170 of file StringUtils_T.cpp.

◆ numberToStringTest()

unsigned StringUtils_T::numberToStringTest ( )
inline

Tests for the number to string method. Given numbers of various types, convert them to a string and compare against the correct known value.

Note
In the previous test the string to number methods are tested. It is okay to use them here as any failures here may be cross-referenced with the results of the previous test.

Definition at line 424 of file StringUtils_T.cpp.

◆ prettyPrintTest()

unsigned StringUtils_T::prettyPrintTest ( )
inline

Test for the prettyPrint method. prettyPrint will take a string and split the information into formatted lines.

Definition at line 679 of file StringUtils_T.cpp.

◆ regularExpressionsTest()

unsigned StringUtils_T::regularExpressionsTest ( )
inline

Tests for the regular expression methods. Provided a string and a regular expression query, the isLike method will return 0 or 1 if a match is found. Matches will then provide the found result.

Definition at line 642 of file StringUtils_T.cpp.

◆ splitWithDoubleQuotesTest()

unsigned StringUtils_T::splitWithDoubleQuotesTest ( )
inline

Test for the splitWithDoubleQuotes method. splitWithDoubleQuotes will split a string into a std::vector<std::string> respecting double quoted strings.

Definition at line 819 of file StringUtils_T.cpp.

◆ splitWithQuotesTest()

unsigned StringUtils_T::splitWithQuotesTest ( )
inline

Test for the splitWithQuotes method. splitWithQuotes will split a string into a std::vector<std::string> respecting single and double quoted strings.

Definition at line 732 of file StringUtils_T.cpp.

◆ stringReplaceTest()

unsigned StringUtils_T::stringReplaceTest ( )
inline

Tests for the string replace methods. Provided a string, replace substrings within it with other substrings and compare with expected results.

Warning
Method will perform the replace on the string passed to it as well!

Definition at line 489 of file StringUtils_T.cpp.

◆ stringToNumberTest()

unsigned StringUtils_T::stringToNumberTest ( )
inline

Tests for the string to number methods. Given a baseString and a target number type, the methods should generate the appropriate values.

Definition at line 382 of file StringUtils_T.cpp.

◆ stripLeadingTest()

unsigned StringUtils_T::stripLeadingTest ( )
inline

Tests for the stripLeading methods. Given a baseString and a filler character and string, the tests will strip the baseString of the request string or character from the front of the string.

Definition at line 212 of file StringUtils_T.cpp.

◆ stripTest()

unsigned StringUtils_T::stripTest ( )
inline

Tests for the strip method. Given a baseString and a filler character and string, the tests will strip the baseString of the request string or character from both ends of the string.

Definition at line 300 of file StringUtils_T.cpp.

◆ stripTrailingTest()

unsigned StringUtils_T::stripTrailingTest ( )
inline

Tests for the stripTrailing methods. Given a baseString and a filler character and string, the tests will strip the baseString of the request string or character from the end of the string.

Definition at line 256 of file StringUtils_T.cpp.

◆ translateTest()

unsigned StringUtils_T::translateTest ( )
inline

Tests for the translate method. Given a baseString and a translation strings, the baseString will be "translated" using those translation strings.

Definition at line 342 of file StringUtils_T.cpp.

◆ wordTest()

unsigned StringUtils_T::wordTest ( )
inline

Tests for the word methods.

Warning
Removal methods will perform the replace on the string passed to it as well!.

Definition at line 522 of file StringUtils_T.cpp.


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


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:43