|
Boolean | get_strings_started (void) |
| [#47]: initializes the string pool, but returns false if something goes wrong. 更多...
|
|
void | str_map (StrNumber k, void(*f)(ASCIICode)) |
|
int | str_length (StrNumber s) |
| [#40]: the number of characters in string number x. 更多...
|
|
void | slow_print (StrNumber s) |
| #60: prints string s 更多...
|
|
Integer | str_adjust_to_room (Integer len) |
|
StrNumber | makestring (void) |
| [#43]: current string enters the pool. 更多...
|
|
StrPoolPtr | str_mark (void) |
|
int | str_cmp (StrNumber s, StrNumber t) |
| 比较两个 str 的差别。返回 0 为相同,非 0 为有差异。 更多...
|
|
int | str_getc (StrNumber s, int k) |
|
void | str_map_from_mark (StrPoolPtr b, void(*f)(ASCIICode)) |
|
void | str_room (StrNumber l) |
| [#42]: make sure that the pool hasn’t overflowed. 更多...
|
|
void | str_set_init_ptrs (void) |
|
void | str_print_stats (FILE *f_log_file) |
|
void | str_dump (FILE *fmt_file) |
|
int | str_undump (FILE *fmt_file, FILE *_not_use_) |
|
void | str_cur_map (void(*f)(ASCIICode)) |
|
int | cur_length (void) |
| [#41]: The length of the current string. 更多...
|
|
void | flush_string (void) |
| [#44]: destroy the most recently made string. 更多...
|
|
void | flush_char (void) |
| [#42]: forget the last character in the pool. 更多...
|
|
StrNumber | idlookup_s (StrNumber s, Boolean no_new_cs) |
|
void | printcurrentstring (void) |
| [#70] prints a yet-unmade string. 更多...
|
|
Boolean | str_eq_str (StrNumber s, StrNumber t) |
| [p21#46]: test equality of strings。 更多...
|
|
void | append_char (ASCIICode s) |
| [#42]: put ASCII code s at the end of str_pool. 更多...
|
|
void | str_print (StrNumber s) |
|
int | str_valid (StrNumber s) |
|
Boolean | str_bcmp (ASCIICode buffp[], long l, StrNumber s) |
|
int | str_scmp (StrNumber s, short *buffp) |
|
StrNumber | str_insert (ASCIICode buffp[], Integer l) |
|
StrNumber | str_ins (short *buffp, long l) |
|
Boolean | str_pool_init (void) |
| [p21#47] Make the first 256 strings, and copy all string in pool_strs[] to string pool. 更多...
|
|