Wiki Home

St Denis . Net


Namespace: B2B
St_Denis .Net (VB.Net, C#.Net, C++.Net) library include the following functions:

At(): Returns the beginning numeric position of the nth occurrence of a character expression within another character expression, counting from the leftmost character (including overlaps). The search performed by At() is case-sensitive.
Rat(): Returns the numeric position of the last (rightmost) occurrence of a character string within another character string (including overlaps). The search performed by Rat() is case-sensitive.
Atc(): Returns the beginning numeric position of the first occurrence of a character expression within another character expression, counting from the leftmost character (including overlaps). The search performed by Atc() is case-insensitive.
Ratc(): Returns the numeric position of the last (rightmost) occurrence of a character string within another character string (including overlaps). The search performed by Ratc() is case-insensitive.
At2(): Returns the beginning numeric position of the first occurrence of a character expression within another character expression, counting from the leftmost character (excluding overlaps). The search performed by At2() is case-sensitive.
Atc2(): Returns the beginning numeric position of the first occurrence of a character expression within another character expression, counting from the leftmost character (excluding overlaps). The search performed by Atc2() is case-insensitive.
Occurs(): Returns the Integer of times a character expression occurs within another character expression (including overlaps).
Occurs2(): Returns the Integer of times a character expression occurs within another character expression (excluding overlaps).
Padl(): Returns a string from an expression, padded with spaces or characters to a specified length on the left side.
Padr(): Returns a string from an expression, padded with spaces or characters to a specified length on the right side.
Padc(): Returns a string from an expression, padded with spaces or characters to a specified length on the both sides.
Chrtran(): Replaces each character in a character expression that matches a character in a second character expression with the corresponding character in a third character expression.
Strfilter(): Removes all characters from a string except those specified.
Strtran(): Searches a character expression for occurrences of a second character expression, and then replaces each occurrence with a third character expression.
Wordtran(): Searches a character string for occurrences of a first word, and then replaces each occurrence with a second word.
Strtranex() : A function with enhanced search-and-replace capabilities as compared to the function Strtran().
Wordtranex() : A function with enhanced search-and-replace capabilities as compared to the function Wordtran().
Getallwords(): Inserts the words from a string into the array.
Getwordcount(): Counts the words in a string.
Getwordnum(): Returns a specified word from a string.
Getnumword(): Returns the index position of a word in a string.
Getoccursword(): Returns the number of times a word occurs within the character string.
Getatword(): Returns the beginning numeric position of the nth occurrence of a word within the character string, counting from the leftmost character.
Getratword(): Returns the numeric position of the last (rightmost) occurrence of a word within the character string.

Converting to/from Roman numerals
Arabtoroman(): Returns the character Roman numeral equivalent of a specified numeric expression (from 1 to 3999).
Romantoarab(): Returns the Integer equivalent of a specified character Roman numeral expression (from I to MMMCMXCIX).

There is the library with source code (VB.Net, C#.Net, C++.Net) available.
Download

Igor Nikiforov is an author of this library.
( Topic last updated: 2009.11.27 02:10:46 PM )