[This is preliminary documentation and is subject to change.]
The OCString type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| OCString |
Methods
| Name | Description | |
|---|---|---|
| AppendDirectorySeparator |
Appends a directory separator at the end of the path if not already present.
| |
| AppendToPath |
Appends a file or directory to a path.
| |
| CheckFileExtension |
Checks if the file extension matches (case insensitive) the comma separated extensions provided.
| |
| Concat | Overloaded. | |
| ConvertFromCsvString |
Convert a csv string to its comma separated equivalent.
| |
| ConvertFromHtml | Overloaded. | |
| ConvertFromRFC822String |
Converts any given string which is in RFC822 format to an ordinary string.
| |
| ConvertHtml | Overloaded. | |
| ConvertLdapUrl |
Converts a path to its LDAP URL by appending a "LDAP://" string at
its front if not already present.
| |
| ConvertToCsvString |
Converts a comma separated string into its csv counterpart. The output
string consists of quoted values separated by commas. For example
the string a,b,c will be converted to "a","b","c"
| |
| ConvertToRFC822String |
Converts any given string (which is not already in RFC822
specification) to RFC822 specification compatible string.
| |
| ConvertUrl | Overloaded. | |
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
| EscapeJavascriptComment |
Escapes the javascript comment character with the a backslash character before the comment character
| |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
| GetHostStr |
Returns the url of the OfficeClip installation. It uses the HostStr
property of the web.config file to get the url.
| |
| GetInitialsFromName |
Gets the initials from the name
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IsDocTypeGifPresent |
Verifies if the icon is present for a particular document type. The
supported document types are shown in docGifTypes | |
| IsValidEmailAddress |
Uses regular expressions to test if a passed string is a valid email address
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ParseCsv |
Parses the CSV string and loads all individual values in a string array.
| |
| ReadCsvLine |
Reads a line from the comma separated StringReader.
This function takes care of the fact that the csv line can span across
multiple lines.
| |
| RemoveLastDirectorySeparator |
removes the last directory separator from the path. No action is taken
if there is no directory separator at the end of the string.
| |
| ReplaceDBNull | Overloaded. | |
| ToApostrophe |
Gets the string converted into the Apostrophe for that noun.
| |
| ToCommonName |
Converts the name string from the last_name, first_name format to the common name
format (first_name last_name).
| |
| ToDigitsOnly |
Filters out all the non digits and returns only the digits back.
| |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) | |
| TruncateFront |
Truncates the string but does it from the front instead of back.
| |
| TruncateStr |
Truncates the string to its limit given as an integer argument.
When the string is truncated, it is appended with three dots (...)
|
