Breaker Posted February 23, 2015 Share Posted February 23, 2015 So, let's start with a short introduction to what a string is. In programming, a string is defined as data type that can represent a text, which is consisted from a collection of characters that contains spaces and numerical values as well. Unlike the "Integer" declaration, which can only contain a single numerical value. Here are different methods of declaring a string: This is the hidden content, please Sign In or Sign Up NOTES: - The separator after #25 means I'm advancing into the details. - Dear guests, benefit from the code. Don't ripoff. 1. Replace Function - creates changes in the contents of the string This is the hidden content, please Sign In or Sign Up 2. Calculate String Length - calculates how many characters are in the string This is the hidden content, please Sign In or Sign Up 3. Reverse String - creates a mirrored text This is the hidden content, please Sign In or Sign Up 4. Construct a String - creates a string from a sequence of characters This is the hidden content, please Sign In or Sign Up 5. ToUpper - converts all lowercase characters to uppercase characters This is the hidden content, please Sign In or Sign Up 6. ToLower - converts all uppercase characters to lowercase characters This is the hidden content, please Sign In or Sign Up 7. ToSentence - capitalizes first character and every first character after ".", "?", "!" This is the hidden content, please Sign In or Sign Up 8. ToInverted - creates a mixture of uppercase and lowercase characters This is the hidden content, please Sign In or Sign Up 9. Split Strings - creates a new line after each word This is the hidden content, please Sign In or Sign Up 10. Join Strings - joins splitted strings and creates a sentence This is the hidden content, please Sign In or Sign Up Link to comment Share on other sites More sharing options...
Recommended Posts