[source]

Package strings

For detailed documentation see below.

Constants

Name

Value

Description

C_POC_NUL

ite ( ( SYNTHESIS_TOOL /= SYNTHESIS_TOOL_ALTERA_QUARTUS2 ) , NUL , '`' )

WORKAROUND: for Altera Quartus-II Version: 15.0 Issue:

character 0 (NUL) causes Quartus-II to crash, if uses to pad STRINGs characters < 32 (control characters) are not supported in Quartus-II characters > 127 are not supported in VHDL files (strict ASCII files) character 255 craches ISE log window (created by 'CHARACTER'val(255)')

Solution:

PoC uses backtick "`" as a fill and termination symbol, if a Quartus-II synthesis environment is detected.

Types

Name

Description

T_RAWCHAR
T_RAWSTRING
T_DIGIT_BIN

digit subtypes incl. error Value (-1)

T_DIGIT_OCT
T_DIGIT_DEC
T_DIGIT_HEX

Functions

virtual function T_IPSTYLE to_IPStyle ( string str ) [source]
virtual function character to_char ( std_logic Value ) [source]

to_char

virtual function character to_char ( T_RAWCHAR rawchar ) [source]
virtual function character to_HexChar ( natural Value ) [source]
virtual function character to_HexChar ( unsigned Value ) [source]
virtual function boolean chr_isDigit ( character chr ) [source]

chr_is* function

virtual function boolean chr_isLowerHexDigit ( character chr ) [source]
virtual function boolean chr_isUpperHexDigit ( character chr ) [source]
virtual function boolean chr_isHexDigit ( character chr ) [source]
virtual function boolean chr_isLower ( character chr ) [source]
virtual function boolean chr_isLowerAlpha ( character chr ) [source]
virtual function boolean chr_isUpper ( character chr ) [source]
virtual function boolean chr_isUpperAlpha ( character chr ) [source]
virtual function boolean chr_isAlpha ( character chr ) [source]
virtual function string raw_format_bool_bin ( boolean Value ) [source]

raw_format_* functions

virtual function string raw_format_bool_chr ( boolean Value ) [source]
virtual function string raw_format_bool_str ( boolean Value ) [source]
virtual function string raw_format_slv_bin ( std_logic_vector slv ) [source]
virtual function string raw_format_slv_oct ( std_logic_vector slv ) [source]
virtual function string raw_format_slv_dec ( std_logic_vector slv ) [source]
virtual function string raw_format_slv_hex ( std_logic_vector slv ) [source]
virtual function string raw_format_nat_bin ( natural Value ) [source]
virtual function string raw_format_nat_oct ( natural Value ) [source]
virtual function string raw_format_nat_dec ( natural Value ) [source]
virtual function string raw_format_nat_hex ( natural Value ) [source]
virtual function string str_format ( REAL Value, natural precision ) [source]

str_format_* functions

virtual function string to_string ( boolean Value ) [source]

to_string

virtual function string to_string ( integer Value, positive base ) [source]
virtual function string to_string ( std_logic_vector slv, character format, natural Length, character fill ) [source]
virtual function string to_string ( T_RAWSTRING rawstring ) [source]
virtual function string to_string ( T_BCD_VECTOR Value ) [source]
virtual function STD_LOGIC_VECTOR to_slv ( T_RAWSTRING rawstring ) [source]

to_slv

virtual function T_DIGIT_BIN to_digit_bin ( character chr ) [source]

to_digit*

virtual function T_DIGIT_OCT to_digit_oct ( character chr ) [source]
virtual function T_DIGIT_DEC to_digit_dec ( character chr ) [source]
virtual function T_DIGIT_HEX to_digit_hex ( character chr ) [source]
virtual function integer to_digit ( character chr, character base ) [source]
virtual function integer to_natural_bin ( string str ) [source]

to_natural*

virtual function integer to_natural_oct ( string str ) [source]
virtual function integer to_natural_dec ( string str ) [source]
virtual function integer to_natural_hex ( string str ) [source]
virtual function integer to_natural ( string str, character base ) [source]
virtual function T_RAWCHAR to_RawChar ( character char ) [source]

to_raw*

virtual function T_RAWSTRING to_RawString ( string str ) [source]
virtual function string resize ( string str, positive size, character FillChar ) [source]

resize

virtual function character chr_toLower ( character chr ) [source]

Character functions

virtual function character chr_toUpper ( character chr ) [source]
virtual function natural str_length ( string str ) [source]

String functions

virtual function boolean str_equal ( string str1, string str2 ) [source]
virtual function boolean str_match ( string str1, string str2 ) [source]
virtual function boolean str_imatch ( string str1, string str2 ) [source]
virtual function integer str_pos ( string str, character chr, natural start ) [source]
virtual function integer str_pos ( string str, string pattern, natural start ) [source]
virtual function integer str_ipos ( string str, character chr, natural start ) [source]
virtual function integer str_ipos ( string str, string pattern, natural start ) [source]
virtual function boolean str_find ( string str, character chr ) [source]
virtual function boolean str_find ( string str, string pattern ) [source]
virtual function boolean str_ifind ( string str, character chr ) [source]
virtual function boolean str_ifind ( string str, string pattern ) [source]
virtual function string str_replace ( string str, string pattern, string replace ) [source]
virtual function string str_substr ( string str, integer start, integer Length ) [source]
virtual function string str_ltrim ( string str, character char ) [source]
virtual function string str_rtrim ( string str, character char ) [source]
virtual function string str_trim ( string str ) [source]
virtual function string str_calign ( string str, natural Length, character FillChar ) [source]
virtual function string str_lalign ( string str, natural Length, character FillChar ) [source]
virtual function string str_ralign ( string str, natural Length, character FillChar ) [source]
virtual function string str_toLower ( string str ) [source]
virtual function string str_toUpper ( string str ) [source]