6 #include "QFog_constants.h" 7 #include "GLOBAL_FUN.h" 31 enum {stringy_max_len = 255};
46 USHORT get_len()
const;
47 const CHAR * get_string()
const;
48 STRINGY get_sub_stringy(USHORT starting_pos, USHORT sub_str_len)
const;
50 BOOLEAN is_legal_name()
const;
55 friend BOOLEAN operator==(
const STRINGY & s,
const CHAR * cstr);
56 friend BOOLEAN operator!=(
const STRINGY & s,
const CHAR * cstr);
58 friend BOOLEAN operator==(
const CHAR * cstr,
const STRINGY & s);
59 friend BOOLEAN operator!=(
const CHAR * cstr,
const STRINGY & s);
63 CHAR & operator[] (USHORT i);
64 const CHAR & operator[] (USHORT i)
const;
68 friend OSTREAM & operator<<( OSTREAM & out_bd,
const STRINGY & s);
69 friend ISTREAM & operator>>( ISTREAM & in_bd,
STRINGY & s);
70 ISTREAM & copy_line(ISTREAM & in_bd, USHORT max_len, CHAR stop_char);
73 #ifdef _mac_gui_app //''''''''''''''''''''''''''''''''''''''''''''\\. 75 VOID fill_LStr255(LStr255 & pstr)
const;
78 BOOLEAN is_double()
const;
79 BOOLEAN is_double(DOUBLE & db)
const;
80 BOOLEAN is_ushort()
const;
81 BOOLEAN is_ushort(USHORT & n)
const;
82 BOOLEAN is_ushort_pair()
const;
83 BOOLEAN is_ushort_pair(USHORT & n1, USHORT & n2)
const;
85 friend LStream & operator<<( LStream & out_bd,
const STRINGY & s);
86 friend LStream & operator>>( LStream & in_bd,
STRINGY & s);
88 #endif //_mac_gui_app \\............................................// 96 USHORT STRINGY::get_len()
const 102 const CHAR * STRINGY::get_string()
const 132 CHAR & STRINGY::operator[](
137 ThrowIf_(i >= its_len);
142 const CHAR & STRINGY::operator[](
149 ThrowIf_(i >= its_len);