StringUtilities
urn:WebWorks-XSLT-Extension-StringUtilities
Functions
Convert the given string into a valid CSS class name.
Decode an escaped URI 'value' back to an unescaped URI. Decode an escaped partial URI component, 'value', back to an unescaped URI component. Create a valid Eclipse ID from 'identifier'.
Encode 'value' string as an escaped URI. Encode 'value' string, a partial URI component, as an escaped URI. Escape 'value' string so that it can be written as an XML attribute.
• string
Format (string format, string argument1 [, string argument2, string argument3, string argument4, string argument5, string argument6, string argument7, string argument8, string argument9, string argument10])
Format a message using the C# string formatter.
• string
FromFile (string sourceFilePath, string sourceFileEncodingName)
Import file contents using 'sourceFileEncodingName' as the file's assumed encoding.
Convert all non-ASCII characters to Unicode escape sequences. Also convert all ASCII characters less than 32 along with problematic escape characters, i.e. \, to Unicode escape sequences.
Return success of match for 'matchExpressionAsString' in 'input'.
Return value of match for 'matchExpressionAsString' in 'input'.
Compute the MD5 checksum on the given 'value' string.
• string
NCNAME (string identifier)
Convert 'identifier' to a valid NCNAME as defined by:
Convert the given string to a string where all left/right single/double quotes are normalized. Left single quotation mark = single quotation mark Right single quotation mark = single quotation mark Left double quotation mark = double quotation mark Right double quotation mark = double quotation mark
Create a valid Open eBook class name from 'styleName'.
• string
Replace (string input, string search, string replacement)
Replace all occurrences of 'search' in 'input' with 'replacement'.
Replace all occurrences of 'searchExpressionAsString' in 'input' with 'replacement'.
Replace 'count' occurrences of 'searchExpressionAsString' in 'input' with 'replacement'.
Compute the SHA-1 (Secure Hash Algorithm 1) checksum on the given 'value' string.
Convert the given string to lowercase.
Convert the given string to uppercase.
Convert the given string to camel case.
Convert the given string to pascal case.
• bool
EndsWith (string input, string suffix)
Return success of suffix being the suffix of input.
Converts the given 'key' into a valid WebWorks Help/Reverb context or topic string.
Detailed Description
urn:WebWorks-XSLT-Extension-StringUtilities
Extend the available string processing methods to XSL to include message formatting, specialized text escaping, regular expression operations, etc.
Member Function Documentation
Last modified date: 10/14/2020