ObjectGears Help

           
Forum   ObjectGears (Version: 1.6.0.0)

Script objects TextUtils

This object offers functions for work with a text.

Script functions

Name Description
string ReplaceBracketCommand( string text, string prefix, string format, object par3, object par4) Function replaces bracket commands in a text.
ParseText CreateParseText() Function returns object ParseText for text parsing.
FindParse CreateFindParse() Function returns object FindParse for parsing the text to elements.
PasswordCheck CreatePasswordCheck(string password) Function returns object PasswordCheck for password check.
DottedText CreateDottedText() Function returns object DottextText.
DottedText CreateDottedText(int minNumbers, int maxNumbers, int maxNumberLength) Function returns object DottextText.
string ToBase64(byte[] bytes) Function converts byte array to a string in Base64 encoding.
byte[] FromBase64(string text) Function converts string in Base64 encoding to a byte array.
List<int> ConvertToList(string values, char separator) Function converts numeric values stored in a text to collection of integers.
string ConvertPersonsToSeparatedString(PersonInfoList personInfoList, string separator, string envelope) Function creates text from full names of users, encloses them into text  envelope a oddělí je textem separator.
string ConvertEntitiesToSeparatedString(EntityInfoList<EntityInfo> entityList, string separator, string envelope) Function creates text from names of entities that will be enclosed in text envelope and separated b text separator.
string ConvertStringsToSeparatedString(StringCollection list, string separator, string envelope) Function creates text from texts that will be enclosed in text envelope and separated b text separator.
string ConvertIntToSeparatedString(List<int> list, string separator, string envelope) Function creates text from integers, encloses them into text  envelope a oddělí je textem separator.
bool Compare(List<int> list1, List<int> list2) Function checks whether two collections are identical.
string UrlEncode(string url) Function encodes text in URL.
string UrlDecode(string url) Function decodes text in URL.
string HtmlEncode(string text) Function encodes text in HTML.
string HtmlDecode(string text) Function decodes text in HTML.

The function for bracket commands enables to add a text command that will be replaced by a particular value at processing/displaying. This function is used e.g. in model Knowledge Base at article displaying.

Object call

OG.TextUtils

This website is using cookies files to provide services and analyse visits. You agree with that by using this website.     Further information