![]() |
GnuCOBOL
2.0
A free COBOL compiler
|
#include "config.h"#include <stdio.h>#include <stdlib.h>#include <stddef.h>#include <stdarg.h>#include <string.h>#include <errno.h>#include <sys/types.h>#include "libcob.h"#include "coblocal.h"
Go to the source code of this file.
Data Structures | |
| struct | dlm_struct |
Macros | |
| #define | COB_LIB_EXPIMP |
| #define | INSPECT_ALL 0 |
| #define | INSPECT_LEADING 1 |
| #define | INSPECT_FIRST 2 |
| #define | INSPECT_TRAILING 3 |
| #define | DLM_DEFAULT_NUM 8U |
| #define DLM_DEFAULT_NUM 8U |
Definition at line 43 of file strings.c.
Referenced by cob_init_strings().
| #define INSPECT_ALL 0 |
Definition at line 38 of file strings.c.
Referenced by cob_inspect_all().
| #define INSPECT_FIRST 2 |
Definition at line 40 of file strings.c.
Referenced by cob_inspect_first(), and inspect_common().
| #define INSPECT_LEADING 1 |
Definition at line 39 of file strings.c.
Referenced by cob_inspect_leading(), and inspect_common().
| #define INSPECT_TRAILING 3 |
Definition at line 41 of file strings.c.
Referenced by cob_inspect_trailing(), and inspect_common().
Definition at line 115 of file strings.c.
References cob_free(), cob_malloc(), cob_field::data, figurative_ptr, figurative_size, and cob_field::size.
Referenced by cob_inspect_converting(), and inspect_common().


| void cob_exit_strings | ( | void | ) |
Definition at line 634 of file strings.c.
References cob_free(), figurative_ptr, figurative_size, inspect_mark, and NULL.
Referenced by cob_terminate_routines().


| void cob_init_strings | ( | void | ) |
Definition at line 652 of file strings.c.
References cob_field::attr, cob_malloc(), COB_NORMAL_BUFF, cob_u8_ptr, const_alpha_attr, const_strall_attr, cob_field::data, DLM_DEFAULT_NUM, dlm_list_size, figurative_ptr, figurative_size, inspect_mark, inspect_mark_size, NULL, and cob_field::size.
Referenced by cob_init().


| void cob_inspect_after | ( | const cob_field * | str | ) |
Definition at line 283 of file strings.c.
References cob_field::data, inspect_end, inspect_start, and cob_field::size.
Referenced by GCic_().

Definition at line 329 of file strings.c.
References INSPECT_ALL, and inspect_common().
Referenced by cobxref_(), GCic_(), and LISTING_().


| void cob_inspect_before | ( | const cob_field * | str | ) |
Definition at line 270 of file strings.c.
References cob_field::data, inspect_end, inspect_start, and cob_field::size.
Referenced by cobxref_().

| void cob_inspect_characters | ( | cob_field * | f1 | ) |
Definition at line 297 of file strings.c.
References cob_add_int(), cob_field::data, inspect_data, inspect_end, inspect_mark, inspect_replacing, and inspect_start.
Referenced by cobxref_().


Definition at line 353 of file strings.c.
References alloc_figurative(), alpha_fld, COB_EC_RANGE_INSPECT_SIZE, COB_FIELD_TYPE, cob_set_exception(), COB_TYPE_ALPHANUMERIC_ALL, cob_field::data, inspect_end, inspect_mark, inspect_start, cob_field::size, str_cob_low, and unlikely.
Referenced by LISTING_().


| void cob_inspect_finish | ( | void | ) |
Definition at line 388 of file strings.c.
References COB_PUT_SIGN, inspect_data, inspect_mark, inspect_replacing, inspect_sign, inspect_size, and unlikely.
Referenced by cobxref_(), GCic_(), and LISTING_().

Definition at line 341 of file strings.c.
References inspect_common(), and INSPECT_FIRST.

Definition at line 231 of file strings.c.
References cob_fast_malloc(), COB_FIELD_DATA, COB_FIELD_IS_NUMDISP, COB_FIELD_SIZE, cob_free(), COB_GET_SIGN, cob_set_exception(), inspect_data, inspect_end, inspect_mark, inspect_mark_size, inspect_replacing, inspect_sign, inspect_size, inspect_start, inspect_var_copy, NULL, and unlikely.

Definition at line 335 of file strings.c.
References inspect_common(), and INSPECT_LEADING.

| void cob_inspect_start | ( | void | ) |
Definition at line 263 of file strings.c.
References inspect_data, inspect_end, inspect_size, and inspect_start.
Referenced by cobxref_(), GCic_(), and LISTING_().

Definition at line 347 of file strings.c.
References inspect_common(), and INSPECT_TRAILING.

|
static |
Definition at line 95 of file strings.c.
Referenced by cob_unstring_into().

|
static |
Definition at line 104 of file strings.c.
References cob_field::attr, cob_move(), const_alpha_attr, cob_field::data, and cob_field::size.
Referenced by cob_unstring_into().


| void cob_string_append | ( | cob_field * | src | ) |
Definition at line 440 of file strings.c.
References COB_EC_OVERFLOW_STRING, cob_get_exception_code(), cob_set_exception(), cob_field::data, cob_field::size, and string_offset.
Referenced by cobxref_(), GCic_(), and LISTING_().


| void cob_string_delimited | ( | cob_field * | dlm | ) |
Definition at line 430 of file strings.c.
References NULL, and string_dlm_copy.
Referenced by cobxref_(), GCic_(), and LISTING_().

| void cob_string_finish | ( | void | ) |
Definition at line 477 of file strings.c.
References cob_set_int(), and string_offset.
Referenced by cobxref_(), GCic_(), and LISTING_().


Definition at line 408 of file strings.c.
References COB_EC_OVERFLOW_STRING, cob_get_int(), cob_set_exception(), NULL, cob_field::size, string_dst_copy, string_offset, and string_ptr_copy.
Referenced by cobxref_(), GCic_(), and LISTING_().


Definition at line 516 of file strings.c.
References dlm_struct::uns_all, dlm_struct::uns_dlm, and unstring_ndlms.
| void cob_unstring_finish | ( | void | ) |
Definition at line 620 of file strings.c.
References COB_EC_OVERFLOW_UNSTRING, cob_set_exception(), cob_set_int(), cob_field::size, and unstring_offset.
Referenced by cobxref_(), GCic_(), get__reserved__lists_(), and LISTING_().


Definition at line 487 of file strings.c.
References COB_EC_OVERFLOW_UNSTRING, cob_free(), cob_get_int(), cob_malloc(), cob_set_exception(), dlm_list_size, NULL, cob_field::size, unstring_count, unstring_ndlms, unstring_offset, unstring_ptr_copy, and unstring_src_copy.
Referenced by cobxref_(), GCic_(), get__reserved__lists_(), and LISTING_().


Definition at line 524 of file strings.c.
References COB_FIELD_IS_NUMERIC, COB_FIELD_SIZE, cob_get_exception_code(), cob_min_int(), cob_set_int(), cob_str_memcpy(), cob_field::data, NULL, cob_field::size, dlm_struct::uns_all, dlm_struct::uns_dlm, unstring_count, unstring_ndlms, and unstring_offset.
Referenced by cobxref_(), GCic_(), get__reserved__lists_(), and LISTING_().


| void cob_unstring_tallying | ( | cob_field * | f | ) |
Definition at line 614 of file strings.c.
References cob_add_int(), and unstring_count.

Definition at line 145 of file strings.c.
References alloc_figurative(), alpha_fld, cob_add_int(), COB_EC_RANGE_INSPECT_SIZE, COB_FIELD_TYPE, cob_set_exception(), COB_TYPE_ALPHANUMERIC_ALL, cob_field::data, inspect_data, inspect_end, INSPECT_FIRST, INSPECT_LEADING, inspect_mark, inspect_replacing, inspect_start, INSPECT_TRAILING, cob_field::size, str_cob_low, and unlikely.
Referenced by cob_inspect_all(), cob_inspect_first(), cob_inspect_leading(), and cob_inspect_trailing().


|
static |
Definition at line 89 of file strings.c.
Referenced by cob_inspect_converting(), and inspect_common().
|
static |
Definition at line 52 of file strings.c.
Referenced by cob_init_strings(), and cob_str_memcpy().
|
static |
Definition at line 54 of file strings.c.
Referenced by cob_init_strings().
|
static |
|
static |
Definition at line 79 of file strings.c.
Referenced by cob_init_strings(), and cob_unstring_init().
|
static |
Definition at line 86 of file strings.c.
Referenced by alloc_figurative(), cob_exit_strings(), and cob_init_strings().
|
static |
Definition at line 87 of file strings.c.
Referenced by alloc_figurative(), cob_exit_strings(), and cob_init_strings().
|
static |
Definition at line 58 of file strings.c.
Referenced by cob_inspect_characters(), cob_inspect_finish(), cob_inspect_init(), cob_inspect_start(), and inspect_common().
|
static |
Definition at line 60 of file strings.c.
Referenced by cob_inspect_after(), cob_inspect_before(), cob_inspect_characters(), cob_inspect_converting(), cob_inspect_init(), cob_inspect_start(), and inspect_common().
|
static |
Definition at line 61 of file strings.c.
Referenced by cob_exit_strings(), cob_init_strings(), cob_inspect_characters(), cob_inspect_converting(), cob_inspect_finish(), cob_inspect_init(), and inspect_common().
|
static |
Definition at line 62 of file strings.c.
Referenced by cob_init_strings(), and cob_inspect_init().
|
static |
Definition at line 64 of file strings.c.
Referenced by cob_inspect_characters(), cob_inspect_finish(), cob_inspect_init(), and inspect_common().
|
static |
Definition at line 65 of file strings.c.
Referenced by cob_inspect_finish(), and cob_inspect_init().
|
static |
Definition at line 63 of file strings.c.
Referenced by cob_inspect_finish(), cob_inspect_init(), and cob_inspect_start().
|
static |
Definition at line 59 of file strings.c.
Referenced by cob_inspect_after(), cob_inspect_before(), cob_inspect_characters(), cob_inspect_converting(), cob_inspect_init(), cob_inspect_start(), and inspect_common().
|
static |
Definition at line 66 of file strings.c.
Referenced by cob_inspect_init().
|
static |
Definition at line 90 of file strings.c.
Referenced by cob_inspect_converting(), and inspect_common().
|
static |
Definition at line 73 of file strings.c.
Referenced by cob_string_delimited().
|
static |
Definition at line 71 of file strings.c.
Referenced by cob_string_init().
|
static |
Definition at line 74 of file strings.c.
Referenced by cob_string_append(), cob_string_finish(), and cob_string_init().
|
static |
Definition at line 72 of file strings.c.
Referenced by cob_string_init().
|
static |
Definition at line 83 of file strings.c.
Referenced by cob_unstring_init(), cob_unstring_into(), and cob_unstring_tallying().
|
static |
Definition at line 84 of file strings.c.
Referenced by cob_unstring_delimited(), cob_unstring_init(), and cob_unstring_into().
|
static |
Definition at line 82 of file strings.c.
Referenced by cob_unstring_finish(), cob_unstring_init(), and cob_unstring_into().
|
static |
Definition at line 81 of file strings.c.
Referenced by cob_unstring_init().
|
static |
Definition at line 80 of file strings.c.
Referenced by cob_unstring_init().