t_string.cpp File Reference

#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.h>
#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 float TEST_RUNTIME_DEFAULT = .5 * MINUTE_ms
int compnum = 0


Define Documentation

#define out   program_wide_logger()

 
#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.


Function Documentation

void istring_sprintf_test ( const char *  parm_string  ) 

Definition at line 918 of file t_string.cpp.

References FUNCDEF, chaos::inclusive(), and istring::sprintf().

Referenced by run_test_30().

int main ( int   formalargc,
char *  formal(argv)[] 
)

void run_test_01 (  ) 

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

Definition at line 318 of file t_string.cpp.

References FUNCDEF, out, and test.

Referenced by main().

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

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

void run_test_13 (  ) 

Definition at line 497 of file t_string.cpp.

References FUNCDEF.

Referenced by main().

void run_test_14 (  ) 

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

Definition at line 611 of file t_string.cpp.

References FUNCDEF.

Referenced by main().

void run_test_18 (  ) 

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

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

void run_test_24 (  ) 

Definition at line 806 of file t_string.cpp.

References earth_time::convert(), deadly_error, FUNCDEF, istring::length(), 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 (  ) 

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

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

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

void run_test_35 (  ) 

void run_test_36 (  ) 

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

out.log(istring("printed: ") + non_deadly);

out.log(istring("sprintf printed: ") + bucket);

out.log(istring("printed: ") + deadly);

Definition at line 1247 of file t_string.cpp.

References FUNCDEF.

Referenced by main().

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(), and istring::s().

Referenced by run_test_30().


Variable Documentation

int compnum = 0

Definition at line 63 of file t_string.cpp.

Definition at line 44 of file t_string.cpp.

const float TEST_RUNTIME_DEFAULT = .5 * MINUTE_ms

Definition at line 56 of file t_string.cpp.

Referenced by main().


Generated on Mon Jul 26 04:22:56 2010 for HOOPLE Libraries by  doxygen 1.5.6