Package: string_methods_pkg
- File: string_methods_pkg.vhd
Functions
- bitvis_assert ( val : boolean;
severeness : severity_level;
msg : string;
scope : string ) return ()
- justify ( val : string;
width : natural := 0;
justified : side := RIGHT;
format: t_format_string := AS_IS -- No defaults on 4 first param - to avoid ambiguity with std.textio ) return string
Description
DEPRECATED.
Function will be removed in future versions of UVVM-Util
- justify ( val : string;
justified : side;
width : natural;
format_spaces : t_format_spaces;
truncate : t_truncate_string ) return string
Description
DEPRECATED.
Function will be removed in future versions of UVVM-Util
- justify ( val : string;
justified : t_justify_center;
width : natural;
format_spaces : t_format_spaces;
truncate : t_truncate_string ) return string
- pos_of_leftmost ( target : character;
vector : string;
result_if_not_found : natural := 1 ) return natural
- pos_of_rightmost ( target : character;
vector : string;
result_if_not_found : natural := 1 ) return natural
- pos_of_leftmost_non_zero ( vector : string;
result_if_not_found : natural := 1 ) return natural
- pos_of_rightmost_non_whitespace ( vector : string;
result_if_not_found : natural := 1 ) return natural
- valid_length ( -- of string excluding trailing NULs vector : string ) return natural
- get_string_between_delimiters ( val : string;
delim_left : character;
delim_right: character;
start_from : SIDE;
-- search from left or right (Only RIGHT implemented so far) occurrence : positive := 1 -- stop on N'th occurrence of delimeter pair. Default first occurrence ) return string
- return_string_if_true ( val : string;
return_val : boolean ) return string
- return_string1_if_true_otherwise_string2 ( val1 : string;
val2 : string;
return_val : boolean ) return string
- to_upper ( val : string ) return string
- fill_string ( val : character;
width : natural ) return string
- pad_string ( val : string;
char : character;
width : natural;
side : side := LEFT ) return string
- replace_backslash_n_with_lf ( source : string ) return string
- replace_backslash_r_with_lf ( source : string ) return string
- remove_initial_chars ( source : string;
num : natural ) return string
- wrap_lines ( constant text_string : string;
constant alignment_pos1 : natural;
-- Line position of first aligned character in line 1 constant alignment_pos2 : natural;
-- Line position of first aligned character in line 2,
etc… constant line_width : natural ) return string
- wrap_lines ( variable text_lines : inout line;
constant alignment_pos1 : natural;
-- Line position prior to first aligned character (incl. Prefix) constant alignment_pos2 : natural;
constant line_width : natural ) return ()
- prefix_lines ( variable text_lines : inout line;
constant prefix : string := C_LOG_PREFIX ) return ()
- replace ( val : string;
target_char : character;
exchange_char : character ) return string
- replace ( variable text_line : inout line;
target_char : character;
exchange_char : character ) return ()
- to_string ( val : boolean;
width : natural;
justified : side;
format_spaces : t_format_spaces;
truncate : t_truncate_string := DISALLOW_TRUNCATE ) return string
Description
Handle missing overloads from 'standard_additions'
- to_string ( val : boolean;
width : natural;
justified : side := right;
format: t_format_string := AS_IS ) return string
Description
This function has been deprecated and will be removed in the next major release
DEPRECATED
- to_string ( val : integer;
width : natural;
justified : side := right;
format : t_format_string := AS_IS ) return string
Description
This function has been deprecated and will be removed in the next major release
DEPRECATED
- to_string ( val : std_logic_vector;
radix : t_radix;
format : t_format_zeros := KEEP_LEADING_0;
-- | SKIP_LEADING_0 prefix : t_radix_prefix := EXCL_RADIX -- Insert radix prefix in string? ) return string
- to_string ( val : unsigned;
radix : t_radix;
format : t_format_zeros := KEEP_LEADING_0;
-- | SKIP_LEADING_0 prefix : t_radix_prefix := EXCL_RADIX -- Insert radix prefix in string? ) return string
- to_string ( val : signed;
radix : t_radix;
format : t_format_zeros := KEEP_LEADING_0;
-- | SKIP_LEADING_0 prefix : t_radix_prefix := EXCL_RADIX -- Insert radix prefix in string? ) return string
- to_string ( val : t_slv_array;
radix : t_radix := HEX_BIN_IF_INVALID;
format : t_format_zeros := KEEP_LEADING_0;
-- | SKIP_LEADING_0 prefix : t_radix_prefix := EXCL_RADIX -- Insert radix prefix in string? ) return string
- to_string ( val : t_signed_array;
radix : t_radix := HEX_BIN_IF_INVALID;
format : t_format_zeros := KEEP_LEADING_0;
-- | SKIP_LEADING_0 prefix : t_radix_prefix := EXCL_RADIX -- Insert radix prefix in string? ) return string
- to_string ( val : t_unsigned_array;
radix : t_radix := HEX_BIN_IF_INVALID;
format : t_format_zeros := KEEP_LEADING_0;
-- | SKIP_LEADING_0 prefix : t_radix_prefix := EXCL_RADIX -- Insert radix prefix in string? ) return string
- to_string ( val : real_vector ) return string
- to_string ( val : time_vector ) return string
- to_string ( val : t_alert_level;
width : natural;
justified : side := right ) return string
Description
Handle types defined at lower levels
- to_string ( val : t_msg_id;
width : natural;
justified : side := right ) return string
- to_string ( val : t_attention;
width : natural;
justified : side := right ) return string
- to_string ( val : t_check_type;
width : natural;
justified : side := right ) return string
- to_string ( val : t_alert_attention_counters;
order : t_order := FINAL ) return ()
- to_string ( val : t_check_counters_array;
order : t_order := FINAL ) return ()
- ascii_to_char ( ascii_pos : integer range 0 to 255;
ascii_allow : t_ascii_allow := ALLOW_ALL ) return character
- char_to_ascii ( char : character ) return integer
- to_string ( val : string ) return string
Description
return string with only valid ascii characters
- add_msg_delimiter ( msg : string ) return string
- timestamp_header ( value : time;
txt : string) return string
Description
Returns a string with a timestamp and a text. Used in report headers