|
|
|
|
|
|
Category: String functions |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns a character string of a specified length.
|
|
|
|
|
|
|
Allows you to check if a substring is within a string.
|
|
|
|
|
|
|
Removes duplicates among substrings of a string, based on one or more separators.
|
|
|
|
|
|
|
Extracts the right part (i.e., the last characters) from a string or buffer.
|
|
|
|
|
|
|
Returns the numeric value of a character string. This feature enables you to perform numeric calculations on strings.
|
|
|
|
|
|
|
Converts an ANSI string (Windows) to an OEM string (DOS).
|
|
|
|
|
|
|
Converts a buffer containing an ANSI string (Windows) to a buffer containing a UNICODE string.
|
|
|
|
|
|
|
Checks the validity of a UTF-8 buffer.
|
|
|
|
|
|
|
Converts the content of a JSON variable to a JSON string.
|
|
|
|
|
|
|
Converts an OEM string (DOS) to an ANSI string (Windows).
|
|
|
|
|
|
|
Converts an ANSI string (Windows) to a UNICODE string.
|
|
|
|
|
|
|
Converts an Ansi or Unicode string to a hexadecimal string (e.g.: "4A 5B 00").
|
|
|
|
|
|
|
Returns the number of characters matching a given type.
|
|
|
|
|
|
|
Checks whether a character string ends: - with a specific character string.
- with one of the character strings in an array.
|
|
|
|
|
|
|
Allows you to: - extract a substring from a string based on a specified string separator.
- search for substrings in a string based on a specified string separator.
|
|
|
|
|
|
|
Formats a character string according to the selected options.
|
|
|
|
|
|
|
Increments a number at the beginning or at the end of a string.
|
|
|
|
|
|
|
Inserts a string into another character string at a given position.
|
|
|
|
|
|
|
Replaces all occurrences of a specified substring in a string with another specified substring.
|
|
|
|
|
|
|
Reverses the characters of a string.
|
|
|
|
|
|
|
Extracts all the substrings from a character string based on one or more string separators.
|
|
|
|
|
|
|
Checks whether a character string starts: - with a specific character string.
- with one of the character strings in an array.
|
|
|
|
|
|
|
Converts an ANSI string (Windows) to an OEM string (DOS).
|
|
|
|
|
|
|
Converts: - an ANSI string (Windows) to a UNICODE string.
- a buffer containing an ANSI string (Windows) to a buffer containing a UNICODE string.
|
|
|
|
|
|
|
Usage example of the Asc function
|
|
|
|
|
|
|
Returns the ASCII code of the specified character.
|
|
|
|
|
|
|
Converts a buffer to a hexadecimal string (e.g.,: "4A 5B 00").
|
|
|
|
|
|
|
Extracts an integer from a binary buffer at a given position.
|
|
|
|
|
|
|
Converts a buffer to a mnemonic phrase using the BIP39 algorithm.
|
|
|
|
|
|
|
Extracts a real from a binary buffer at a given position.
|
|
|
|
|
|
|
Capitalizes the first letter of all words in a string.
|
|
|
|
|
|
|
Usage example of the Charact function
|
|
|
|
|
|
|
Returns the character corresponding to the specified ASCII code.
|
|
|
|
|
|
|
Returns information about the type of character.
|
|
|
|
|
|
|
Returns the number of characters matching a given type.
|
|
|
|
|
|
|
Returns the character corresponding to the specified Unicode code.
|
|
|
|
|
|
|
Returns the number of common characters between two strings (from the beginning or from the end of the string).
|
|
|
|
|
|
|
Returns a character string of a specified length.
|
|
|
|
|
|
|
Adds a backslash to the end of a string, if necessary.
|
|
|
|
|
|
|
Allows you to check if a substring is within a string.
|
|
|
|
|
|
|
Makes a control (or a group of controls) visible in a window. During this operation, an animation can be performed on the controls.
|
|
|
|
|
|
|
Extracts a specific line from a character string.
|
|
|
|
|
|
|
Allows you to: - extract a substring from a string based on a specified string separator.
- search for substrings in a string based on a specified string separator.
|
|
|
|
|
|
|
Allows you to: - extract a substring between two given separators from a character string.
- search for substrings between two given separators in a character string.
|
|
|
|
|
|
|
WINDEV, WINDEV Mobile and WEBDEV allow you to perform different types of operations on character strings via the WLanguage functions...
|
|
|
|
|
|
|
Converts a string with hexadecimal bytes to a binary buffer.
|
|
|
|
|
|
|
Returns the numeric value of a hexadecimal string.
|
|
|
|
|
|
|
Converts an HTML string or an HTML buffer to an RTF string.
|
|
|
|
|
|
|
Converts an HTML string or buffer to text.
|
|
|
|
|
|
|
Returns the hexadecimal string of a numeric value.
|
|
|
|
|
|
|
Converts the content of a JSON variable to a JSON string.
|
|
|
|
|
|
|
Usage example of the JSONToVariant function
|
|
|
|
|
|
|
Converts a JSON string to a Variant variable.
|
|
|
|
|
|
|
Checks the validity of a JSON string.
|
|
|
|
|
|
|
Extracts the left part (i.e., the first characters) from a string or buffer.
|
|
|
|
|
|
|
Returns: - the length of a string, i.e., the number of characters in the string (including spaces and binary zeros).
- the size of a buffer, i.e., the number of bytes in the buffer.
|
|
|
|
|
|
|
Converts a size in bytes to a string with human-readable units such as kilobytes, megabytes or terabytes.
|
|
|
|
|
|
|
Returns the position of the first character of a line in a block of text.
|
|
|
|
|
|
|
Converts all characters in a string to lowercase according to the region settings defined in Windows.
|
|
|
|
|
|
|
Adds a clickable link in a Markdown string. This makes it possible to add a link in a control that supports Markdown format.
|
|
|
|
|
|
|
Converts a Markdown string to a DOCX file.
|
|
|
|
|
|
|
Converts a Markwdown string to an HTML buffer (encoded in UTF-8).
|
|
|
|
|
|
|
Converts a Markdown string (or buffer) to a buffer containing a PDF document.
|
|
|
|
|
|
|
Converts a Markdown string to plain text (without tags).
|
|
|
|
|
|
|
Checks whether a character string matches a specific format and retrieves the different substrings that match the format.
|
|
|
|
|
|
|
Extracts: - a substring from a string starting at a specified position.
- part of a buffer starting at a specified position.
|
|
|
|
|
|
|
Converts accented characters in a string to non-accented characters.
|
|
|
|
|
|
|
Returns a string after removing the specified leading and trailing characters.
|
|
|
|
|
|
|
Returns a string after removing the specified characters from the left side of the initial string.
|
|
|
|
|
|
|
Returns a string after removing the specified characters from the right side of the initial string.
|
|
|
|
|
|
|
Returns a string after removing the spaces: - from the left and right side of the initial string.
- within the string.
|
|
|
|
|
|
|
Converts a number to words.
|
|
|
|
|
|
|
The NumericFormat type allows you to define all the characteristics of the format to be used with the NumToString function.
|
|
|
|
|
|
|
Converts a numeric value (integer, real or currency) to a string in the Chinese financial writing format.
|
|
|
|
|
|
|
Converts a numeric value (integer, real or currency) to a string according to a specified format.
|
|
|
|
|
|
|
Converts an OEM string (DOS) to an ANSI string (Windows).
|
|
|
|
|
|
|
Returns the phonetic transcription of the string passed as parameter.
|
|
|
|
|
|
|
Returns the buffer encoded in a BIP39 mnemonic phrase.
|
|
|
|
|
|
|
Finds the position of a specified string within another string.
|
|
|
|
|
|
|
Finds the Xth position of a string within another string.
|
|
|
|
|
|
|
Returns the number of the line that contains a character identified by its position in a block of text.
|
|
|
|
|
|
|
Checks whether a string matches the format defined by a regular expression.
|
|
|
|
|
|
|
Replaces all the parts of a string that follow a specific format.
|
|
|
|
|
|
|
Searches for all the parts of a string that match a specific format.
|
|
|
|
|
|
|
Concatenates N number of copies of the same specified string or buffer.
|
|
|
|
|
|
|
Usage example of the Replace function
|
|
|
|
|
|
|
Replaces all occurrences of a specified substring in a string with another specified substring.
|
|
|
|
|
|
|
Returns the character that corresponds to the difference between the ASCII code of a specific character in a string and 255.
|
|
|
|
|
|
|
Extracts the last characters from a string or string buffer.
|
|
|
|
|
|
|
The serialization constants are as follows:
|
|
|
|
|
|
|
List of constants used by string functions
|
|
|
|
|
|
|
List of functions for managing character strings
|
|
|
|
|
|
|
The following functions are used to handle strings, using prefix syntax:
|
|
|
|
|
|
|
Builds a character string from an initial string and parameters.
|
|
|
|
|
|
|
Compares two strings character by character: - according to the sequence of ASCII characters.
- according to the alphabetical order.
|
|
|
|
|
|
|
Calculates: - the number of occurrences of a specific character string (by respecting the search criteria) in another character string.
- the number of occurrences of a set of strings in an array.
|
|
|
|
|
|
|
Deletes: - all the occurrences of a substring within a string.
- part of a string within another string. The part of the string to remove is identified by its position and length.
|
|
|
|
|
|
|
Removes duplicates among substrings of a string, based on one or more separators.
|
|
|
|
|
|
|
Checks whether a character string ends: - with a specific character string.
- with one of the character strings in an array.
|
|
|
|
|
|
|
Formats a character string according to the selected options.
|
|
|
|
|
|
|
Increments a number at the beginning or at the end of a string.
|
|
|
|
|
|
|
Inserts a string into another character string at a given position.
|
|
|
|
|
|
|
Retrieves a character string in a format external to PC Soft (character string that is the result of a Windows API for example).
|
|
|
|
|
|
|
Reverses the characters of a string.
|
|
|
|
|
|
|
Extracts all the substrings from a character string based on one or more string separators.
|
|
|
|
|
|
|
Checks whether a character string starts: - with a specific character string.
- with one of the character strings in an array.
|
|
|
|
|
|
|
Converts a JSON string into a JSON variable.
|
|
|
|
|
|
|
Returns the numeric value of a character string. This feature enables you to perform numeric calculations on strings.
|
|
|
|
|
|
|
Converts an ANSI or UNICODE string to UTF-8.
|
|
|
|
|
|
|
Converts a system integer to a 4-byte integer.
|
|
|
|
|
|
|
Converts text to HTML (carriage returns are replaced by <BR>, accented characters are replaced by their equivalent in HTML, etc.).
|
|
|
|
|
|
|
Converts text to Rich Text Format.
|
|
|
|
|
|
|
Truncates the right part of a string or buffer.
|
|
|
|
|
|
|
Removes the '/' or '\' characters from the end of a string, if necessary.
|
|
|
|
|
|
|
UNICODE is an encoding system that assigns a unique number to each character.
|
|
|
|
|
|
|
Converts: - a UNICODE string to ANSI (Windows).
- a buffer containing a UNICODE string to a buffer containing an ANSI string (Windows).
|
|
|
|
|
|
|
Converts all characters in a string to uppercase according to the region settings defined in Windows.
|
|
|
|
|
|
|
Decodes an encoded URL (which means with characters in %xx format).
|
|
|
|
|
|
|
Encodes a URL with a sub-set of ASCII characters.
|
|
|
|
|
|
|
Returns the different elements of a URL: protocol, user, password, domain, port, resource path, resource name, resource extension, request and fragment.
|
|
|
|
|
|
|
Converts a UTF-8 string to ANSI.
|
|
|
|
|
|
|
Converts a UTF-8 string to ANSI or UNICODE.
|
|
|
|
|
|
|
Converts a UTF-8 string to Unicode
|
|
|
|
|
|
|
Checks the validity of a UTF-8 string.
|
|
|
|
|
|
|
Converts a string or buffer to the specified format: UTF, ANSI, Unicode.
|
|
|
|
|
|
|
Returns the numeric value of a character string.
|
|
|
|
|
|
|
Converts the content of a Variant variable to JSON.
|
|
|
|
|
|
|
Returns the number of words in a string.
|
|
|
|
|
|
|
Fills an array with the words from a string.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|