Description: DynuString component has 25 methods: Compare(str1- string, str2 - string)Case-sensitive compare of two strings.Returns zero if the strings are identical, < 0 if str1 is less than str2, or > 0 if str1 is greater than str2e.g. Compare("abc", "abd") will return -1.CompareNoCase(str1- string, str2 - string) Case-insensitive compare of two strings.Return: Zero if the strings are identical, < 0 if str1 is less than str2, or > 0 if str1 is greater than str2e.g. Compare("abc", "abd") will return -1.Empty(str - string) Clears a string.Find(str - string, ch - string, pos -integer) Locates a substring ch within the larger string str starting the search from position pos.Combine(str1 - string, str2 - string)Concatenates two strings str1 and str2 into a larger string.Delete(str - string, pos - integer, count - integer)Deletes a character or characters from a string where pos is the starting position and count is the number of characters to delete.FindOneOf(str - string, ch - string) Searches the string to find the first character that matches any character in the character set.GetAt(str - string, pos - integer)Returns the character at a given position pos.GetLength(str - string) Returns the number of characters in a string.Insert(str - string, pos - interger, ch - string) Inserts a single character or a substring at the given index within the string.IsEmpty(str - string) Tests whether a string contains no characters.Left(str - string, count - integer) Extracts the left part of a string where count is the number of characters to extract.MakeLower(str - string)Converts all the characters in this string to lowercase characters.MakeReverse(str - string)Reverses the characters in this string.MakeUpper(str - string)Converts all the characters in this string to uppercase characters.Mid(str - string, startpos - integer, count - integer) Extracts the middle part of a string where startpos is the starting position and count is the number of characters to be extracted.Remove(str - string, ch - string) Removes indicated characters from a string where ch is the character set to be removed.ReverseFind(str - string, ch - character)Finds a character inside a larger string; starts from the end.Right(str - string, count - integer)Extracts the right part of a string where count is the number of characters to be extracted.SetAt(str - string, ch - character, pos - integer) Sets the character ch at a given position pos withing the string str.SpanExcluding(str - string, set - string)Extracts a substring from str that contains only the characters not in set.SpanIncluding(str - string, set - string) Extracts a substring from str that contains only the characters in set.TrimLeft(str - string, ch - string) Trim leading target characters ch from the string str.TrimRight(str - string, ch - string) Trim trailing target characters ch from the string str.Replace(str - string, oldstr - string, newstr - string) Replaces the old phrase oldstr with new phrase newstr in the original string str.DynuString
|