#include "t_basis.rh"#include <basis/chaos.h>#include <basis/earth_time.h>#include <basis/function.h>#include <basis/guards.h>#include <basis/istring.h>#include <basis/sequence.cpp>#include <basis/string_array.h>#include <data_struct/static_memory_gremlin.h>#include <mechanisms/time_stamp.h>#include <loggers/file_logger.h>#include <textual/byte_format.h>#include <textual/string_convert.h>#include <textual/string_manipulation.h>#include <stdio.h>#include <stdlib.h>#include <string.h>Include dependency graph for t_string.cpp:

Go to the source code of this file.
Defines | |
| #define | out program_wide_logger() |
| #define | static_class_name() "t_istring" |
| #define | WHERE __WHERE__.s() |
| #define | test(expr) |
| #define | test_name() isprintf("test %d: ", test_num) |
| #define | test_name() isprintf("test %d: ", test_num) |
Functions | |
| void | run_test_01 () |
| void | run_test_02 () |
| void | run_test_03 () |
| void | run_test_04 () |
| void | run_test_05 () |
| void | run_test_06 () |
| void | run_test_07 () |
| void | run_test_08 () |
| void | run_test_09 () |
| void | run_test_10 () |
| void | run_test_11 () |
| void | run_test_12 () |
| void | run_test_13 () |
| void | run_test_14 () |
| void | run_test_15 () |
| void | run_test_16 () |
| void | run_test_17 () |
| void | run_test_18 () |
| void | run_test_19 () |
| void | run_test_20 () |
| void | run_test_21 () |
| void | run_test_22 () |
| void | run_test_23 () |
| void | run_test_24 () |
| void | run_test_25 () |
| void | run_test_26 () |
| void | run_test_27 () |
| void | run_test_28 () |
| void | run_test_29 () |
| void | standard_sprintf_test (const char *parm_string) |
| void | istring_sprintf_test (const char *parm_string) |
| void | run_test_30 () |
| void | run_test_31 () |
| void | run_test_32 () |
| void | run_test_33 () |
| void | run_test_34 () |
| void | run_test_35 () |
| void | run_test_36 () |
| void | run_test_37 () |
| void | run_test_38 () |
| void | run_test_39 () |
| void | run_test_40 () |
| void | run_test_41 () |
| int | main (int formal(argc), char *formal(argv)[]) |
Variables | |
| HOOPLE_STARTUP_CODE | |
| chaos | rando |
| const int | TEST_RUNTIME_DEFAULT = .5 * MINUTE_ms |
| int | compnum = 0 |
| #define out program_wide_logger() |
Definition at line 53 of file t_string.cpp.
Referenced by instruct(), main(), byte_format::make_eight(), modify_character(), operator<<(), byte_format::print_char(), byte_format::print_chars(), print_instructions_and_exit(), run_as_service(), run_test_01(), run_test_02(), run_test_04(), run_test_05(), run_test_06(), run_test_07(), run_test_08(), run_test_09(), run_test_10(), run_test_18(), run_test_20(), run_test_24(), and run_test_30().
| #define static_class_name | ( | ) | "t_istring" |
Definition at line 54 of file t_string.cpp.
| #define test | ( | expr | ) |
Value:
compnum++; \ if (expr) { \ istring fred(istring::SPRINTF, "operator test %d did not work", ++compnum); \ deadly_error(WHERE, func, fred.observe()); \ }
Definition at line 64 of file t_string.cpp.
| #define test_name | ( | ) | isprintf("test %d: ", test_num) |
| #define test_name | ( | ) | isprintf("test %d: ", test_num) |
Referenced by run_test_40(), and run_test_41().
| #define WHERE __WHERE__.s() |
Definition at line 59 of file t_string.cpp.
| void istring_sprintf_test | ( | const char * | parm_string | ) |
Definition at line 918 of file t_string.cpp.
References FUNCDEF, chaos::inclusive(), rando, and istring::sprintf().
Referenced by run_test_30().
| int main | ( | int | formal(argc), | |
| char * | formal(argv)[] | |||
| ) |
Definition at line 1400 of file t_string.cpp.
References guards::alert_message(), deadly_error, FUNCDEF, out, run_test_01(), run_test_02(), run_test_03(), run_test_04(), run_test_05(), run_test_06(), run_test_07(), run_test_08(), run_test_09(), run_test_10(), run_test_11(), run_test_12(), run_test_13(), run_test_14(), run_test_15(), run_test_16(), run_test_17(), run_test_18(), run_test_19(), run_test_20(), run_test_21(), run_test_22(), run_test_23(), run_test_24(), run_test_25(), run_test_26(), run_test_27(), run_test_28(), run_test_29(), run_test_30(), run_test_31(), run_test_32(), run_test_33(), run_test_34(), run_test_35(), run_test_36(), run_test_37(), run_test_38(), run_test_39(), run_test_40(), run_test_41(), istring::s(), SET_DEFAULT_COMBO_LOGGER, istring::SPRINTF, TEST_RUNTIME_DEFAULT, and WHERE.
| void run_test_01 | ( | ) |
Definition at line 74 of file t_string.cpp.
References deadly_error, istring::empty_string(), FUNCDEF, istring::length(), out, istring::s(), time_stamp::value(), and WHERE.
Referenced by main().
| void run_test_02 | ( | ) |
Definition at line 127 of file t_string.cpp.
References deadly_error, FUNCDEF, NIL, out, and WHERE.
Referenced by main().
| void run_test_03 | ( | ) |
Definition at line 155 of file t_string.cpp.
References deadly_error, FUNCDEF, istring::length(), WHERE, and istring::zap().
Referenced by main().
| void run_test_04 | ( | ) |
Definition at line 165 of file t_string.cpp.
References deadly_error, istring::find(), FUNCDEF, istring::length(), out, istring::s(), WHERE, and istring::zap().
Referenced by main().
| void run_test_05 | ( | ) |
Definition at line 208 of file t_string.cpp.
References deadly_error, FUNCDEF, out, istring::reset(), istring::s(), istring::SPRINTF, test, WHACK(), and WHERE.
Referenced by main().
| void run_test_06 | ( | ) |
Definition at line 291 of file t_string.cpp.
References deadly_error, FUNCDEF, out, istring::SPRINTF, and WHERE.
Referenced by main().
| void run_test_07 | ( | ) |
| void run_test_08 | ( | ) |
Definition at line 337 of file t_string.cpp.
References deadly_error, FUNCDEF, out, and WHERE.
Referenced by main().
| void run_test_09 | ( | ) |
Definition at line 369 of file t_string.cpp.
References deadly_error, FUNCDEF, istring::length(), out, istring::SPRINTF, istring::stuff(), WHERE, and istring::zap().
Referenced by main().
| void run_test_10 | ( | ) |
Definition at line 386 of file t_string.cpp.
References istring::compare(), deadly_error, FUNCDEF, istring::insert(), istring::length(), out, istring::s(), istring::substring(), WHERE, and istring::zap().
Referenced by main().
| void run_test_11 | ( | ) |
Definition at line 453 of file t_string.cpp.
References deadly_error, FUNCDEF, istring::length(), and WHERE.
Referenced by main().
| void run_test_12 | ( | ) |
Definition at line 468 of file t_string.cpp.
References deadly_error, FUNCDEF, istring::length(), istring::reset(), istring::s(), istring::SPRINTF, istring::UNTERMINATED, and WHERE.
Referenced by main().
| void run_test_13 | ( | ) |
| void run_test_14 | ( | ) |
Definition at line 512 of file t_string.cpp.
References deadly_error, FUNCDEF, chaos::inclusive(), istring::length(), rando, istring::s(), istring::SPRINTF, WHERE, and istring::zap().
Referenced by main().
| void run_test_15 | ( | ) |
Definition at line 529 of file t_string.cpp.
References istring::convert(), deadly_error, FUNCDEF, istring::SPRINTF, and WHERE.
Referenced by main().
| void run_test_16 | ( | ) |
Definition at line 584 of file t_string.cpp.
References deadly_error, FUNCDEF, istring::insert(), istring::length(), and WHERE.
Referenced by main().
| void run_test_17 | ( | ) |
| void run_test_18 | ( | ) |
Definition at line 622 of file t_string.cpp.
References borgia, earth_time::convert(), deadly_error, FUNCDEF, GET_INSTANCE_HANDLE, istring::length(), out, portable::rc_string(), and WHERE.
Referenced by main().
| void run_test_19 | ( | ) |
Definition at line 657 of file t_string.cpp.
References deadly_error, FUNCDEF, istring::SPRINTF, and WHERE.
Referenced by main().
| void run_test_20 | ( | ) |
Definition at line 668 of file t_string.cpp.
References FUNCDEF, out, and istring::SPRINTF.
Referenced by main().
| void run_test_21 | ( | ) |
Definition at line 700 of file t_string.cpp.
References deadly_error, istring::end(), istring::find(), istring::FROM_BOTH_SIDES, istring::FROM_END, istring::FROM_FRONT, FUNCDEF, negative(), istring::replace(), istring::strip_spaces(), WHERE, and istring::zap().
Referenced by main().
| void run_test_22 | ( | ) |
Definition at line 740 of file t_string.cpp.
References deadly_error, istring::find(), FUNCDEF, and WHERE.
Referenced by main().
| void run_test_23 | ( | ) |
Definition at line 778 of file t_string.cpp.
References deadly_error, istring::FROM_BOTH_SIDES, istring::FROM_END, istring::FROM_FRONT, FUNCDEF, istring::strip(), and WHERE.
Referenced by main().
| void run_test_24 | ( | ) |
Definition at line 806 of file t_string.cpp.
References earth_time::convert(), deadly_error, FUNCDEF, out, istring::s(), istring::SPRINTF, and WHERE.
Referenced by main().
| void run_test_25 | ( | ) |
Definition at line 831 of file t_string.cpp.
References deadly_error, FUNCDEF, istring::length(), and WHERE.
Referenced by main().
| void run_test_26 | ( | ) |
Definition at line 849 of file t_string.cpp.
References FUNCDEF, and timestamp().
Referenced by main().
| void run_test_27 | ( | ) |
Definition at line 860 of file t_string.cpp.
References earth_time::date_now(), FUNCDEF, earth_time::now(), earth_time::time_locus::text_form(), earth_time::clock_time::text_form(), earth_time::day_in_year::text_form(), and earth_time::time_now().
Referenced by main().
| void run_test_28 | ( | ) |
Definition at line 873 of file t_string.cpp.
References deadly_error, FUNCDEF, istring::SPRINTF, and WHERE.
Referenced by main().
| void run_test_29 | ( | ) |
Definition at line 885 of file t_string.cpp.
References deadly_error, FUNCDEF, istring::pack(), istring::unpack(), and WHERE.
Referenced by main().
| void run_test_30 | ( | ) |
Definition at line 931 of file t_string.cpp.
References FUNCDEF, istring_sprintf_test(), string_manipulation::make_random_name(), out, time_stamp::reset(), istring::s(), istring::SPRINTF, standard_sprintf_test(), and time_stamp::value().
Referenced by main().
| void run_test_31 | ( | ) |
Definition at line 967 of file t_string.cpp.
References deadly_error, FUNCDEF, istring::length(), and WHERE.
Referenced by main().
| void run_test_32 | ( | ) |
Definition at line 988 of file t_string.cpp.
References deadly_error, istring::end(), flip_increasing(), FUNCDEF, chaos::inclusive(), istring::length(), string_manipulation::make_random_name(), MEGABYTE, negative(), rando, WHERE, and istring::zap().
Referenced by main().
| void run_test_33 | ( | ) |
Definition at line 1039 of file t_string.cpp.
References deadly_error, FUNCDEF, istring::replace(), and WHERE.
Referenced by main().
| void run_test_34 | ( | ) |
Definition at line 1081 of file t_string.cpp.
References absolute_value(), istring::begins(), deadly_error, istring::ends(), FUNCDEF, istring::ibegins(), istring::iends(), chaos::inclusive(), string_manipulation::make_random_name(), rando, istring::s(), istring::slow_strncasecmp(), istring::SPRINTF, and WHERE.
Referenced by main().
| void run_test_35 | ( | ) |
Definition at line 1166 of file t_string.cpp.
References deadly_error, FUNCDEF, istring::get_implem(), array< contents >::internal_real_length(), istring::shrink(), and WHERE.
Referenced by main().
| void run_test_36 | ( | ) |
Definition at line 1181 of file t_string.cpp.
References deadly_error, FUNCDEF, basis::pack(), array< contents >::reset(), string_array::text_form(), basis::unpack(), and WHERE.
Referenced by main().
| void run_test_37 | ( | ) |
Definition at line 1226 of file t_string.cpp.
References deadly_error, FUNCDEF, istring::pack(), istring::unpack(), and WHERE.
Referenced by main().
| void run_test_38 | ( | ) |
| void run_test_39 | ( | ) |
Definition at line 1266 of file t_string.cpp.
References deadly_error, istring::find_any(), FUNCDEF, and WHERE.
Referenced by main().
| void run_test_40 | ( | ) |
Definition at line 1279 of file t_string.cpp.
References deadly_error, FUNCDEF, istring::replace_all(), test_name, and WHERE.
Referenced by main().
| void run_test_41 | ( | ) |
Definition at line 1356 of file t_string.cpp.
References deadly_error, istring::find_non_match(), FUNCDEF, istring::length(), test_name, and WHERE.
Referenced by main().
| void standard_sprintf_test | ( | const char * | parm_string | ) |
Definition at line 905 of file t_string.cpp.
References FUNCDEF, chaos::inclusive(), rando, and istring::s().
Referenced by run_test_30().
| int compnum = 0 |
Definition at line 63 of file t_string.cpp.
Definition at line 44 of file t_string.cpp.
Definition at line 48 of file t_string.cpp.
Referenced by array_tester(), generate_key(), istring_sprintf_test(), main(), portable::query_for_process_info(), random_seed(), run_test_14(), run_test_32(), run_test_34(), SAFE_STATIC_CONST(), shuffle_list(), standard_sprintf_test(), and test_amorph_of().
| const int TEST_RUNTIME_DEFAULT = .5 * MINUTE_ms |
1.5.1