Sunday, August 28, 2011

String Manipulation


3. Write about 6 of the functions listed
  • Purpose of function
  • Number of overloads (if any)
  • Parameters and their data types
  • Return type
  • Exceptions thrown by the function


Join function
Purpose -  The join function joins a number of substrings that are positioned in an array
Overloads - Join has 2 overloads
Parameters/Data Types - SourceArray (Object) & Delimiter (String)
Returns - Join returns a String
Exceptions - ArguementException

StrDup function
Purpose - is to return a specified character from a specified number of times
Overloads - StrDup has 3 overloads
Parameters/Data Types - Number (Int32) Character (Char)
Returns - StrDup returns a Strng
Exceptions - ArguementException & ArguementNullException

StrConv function
Purpose - Covert to a specified string
Overloads - 0 overloads
Parameters/Data Types - Str(String) & Conversion(StrConv) & LocaleID(Int32)
Returns - StrConv returns a string
Exceptions - ArguementException


LTrim function
Purpose - a copy of a specified string that contains no leading spaces
Overloads - 0 overloads
Parameters/Data Types - str(String)
Returns - this returns a String
Exceptions - 0 exceptions

Filter function
Purpose - to return an array that contained
Overloads - 2 overloads
Parameters/Data Types - Source(Object) & Match(String) & Include(Boolean) & Compare(CompareMethod)
Returns - Filter returns a zero based array
Exceptions - ArguementException

LCase function
Purpose - to covert a string or character to lowercase
Overloads - 2 overloads
Parameters/Data Types - Value(Char)
Returns - this returns both a string or character
Exceptions - 0 exceptions

No comments:

Post a Comment