Showing posts with label strimg. Show all posts
Showing posts with label strimg. Show all posts

String Functions in Ab Initio : Part 1

 Refer Below details for all the list of string function available in Ab Initio

char_string   

  • It returns a one-character native string that corresponds to the specified character code.

decimal_lpad   

  • It returns a decimal string of the specified length or longer, left-padded with a specified character as needed.

decimal_lrepad   

  • It returns a decimal string of the specified length or longer, left-padded with a specified character as needed and trimmed of leading zeros.

decimal_strip   

  • It returns a decimal from a string that has been trimmed of leading zeros and non-numeric characters.

edit_distance   

  • It returns the minimum number of single-character insertions, deletions, and substitutions needed to turn a specified string into another.

ends_with

  • It returns 1 (true) if a string ends with the specified suffix; 0 (false) otherwise.

from_json

  • It returns a DML object from a JavaScript Object Notation (JSON) document.

from_xml   

  • It returns a DML object from an Extensible Markup Language (XML) document.

hamming_distance   

  • It returns the minimum number of single character substitutions needed to turn a specified string into another string.

is_blank   

  • It tests whether a string contains only blank characters.

is_bzero   

  • It tests whether an object is composed of all binary zero bytes.

make_byte_flags   

  • It returns a vector of flags that indicates whether a character occurs in a specified string.

multistring_create   

  • It returns a multistring handle from a vector of strings and creates its associated index.

multistring_find   

  • It returns the first instance of a string matching a string element of a multistring vector.

multistring_find_all   

  • It returns all instances of a string matching the string elements of a multistring vector.

multistring_free   

  • It resets a multistring handle, removing its associated index and freeing its memory.

multistring_lfind   

  • It returns the longest match to the string elements of a multistring vector at the beginning of a searchable string.

multistring_rfind   

  • It returns the longest match to the string elements of a multistring vector at the end of a searchable string.