Xbasic

Character Counting Functions

Description

Functions to count elements in strings.

Name
Description
*grouping_word_count Function

Function to help parse nested delimiters - returns # of outermost syntax elements.

COUNT_TEXTBLOCKS Function

Counts the number of occurrences of a sub-string starting with 'start_string' and ending with 'end_string'.

INCREMENT_VALUE Function

Increments a value of any type. Character fields can be incremented. e.g. "AZ-9" becomes "BA-0"

LEN Function

Returns the number of characters in a string.

len_u Function

Returns the number of characters in a string, honors UTF8 encoding.

LINE_COUNT Function

Counts the number of lines in a string.

OCCURS Function

Returns the number of times one string is found in another.

OCCURS_WORDS Function

Returns the number of times word occurs in string.

OCCURSI Function

Returns the number of times one Case Insensitive string is found in another.

rtrim_count Function

Removes the specified number of occurrences of string from the end of inputText

W_COUNT Function

Counts number of words in a character string.

WORD_OCCURS Function

Returns number of occurences of word in a list of words. Default delimiter is CRLF

See Also