answersLogoWhite

0

C#:String Functions

The methods and properties of the String type include:

String s="Sourav was here"

Example Value Details

s+" once" "Sourav was here once" The strings are concatenated using +

s.Equals("another") false Also s == "another" Tests for equality

s.IndexOf("was") 6 Returns -1 if the substring is

not there.

s.Length 14 The number of characters

s.Split(" ") ["Andrew","was","here"] Returns an array of String.

s.Substring(2,7) "urav wa" Characters from position 2. 7

characters are taken

s.ToUpper() "SOURAV WAS HERE" Also .toLowerCase()

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is the user of stringbufer class explain how it is different from a string class?

A StringBuffer is similar to a String with a few differences:String objects are immutable while StringBuffer objects can be modifiedIf your code involves string manipulation, string buffer is faster than strings


What are the functions of Atoi itoa and gcvt in C language?

All these are conversion functions - atoi()-string to integer.itoa()-integer to string.gcvt()-double to string


C plus plus library functions for string operations?

You can use "string" class in C++ for string operations or you may use c style string functions as well. #include <string> String class in C++ provides all basic function to operate on strings. you may details descriptin at http://www.cplusplus.com/reference/string/string/


Define class string and implement all the functions related to strings?

define class string


How would you explain an individual particle with string theory?

An individual point particle in the standard model is described in string theory as a mode of vibration of a string. If for some reason the mode of vibration of the string changed, the particle would change to a different one.


Can you sue if a dog swallows a string that could have belonged in your home?

I'll tell you if you explain STRING.


What are the functions Microsoft Excel?

Functions allow you to perform some mathematical or string procedures to other cells.


What are the different issues if a string is implemented as a primitive or as a character array?

Even in languages where string is a type, it is still an array of characters. A computer can not represent a string as a primitive type. That said, the difference between using the programming language string object or an array or list if characters will differ based on language. Though in most languages which offer a string type, it would mean that you'd have to implement all the functions provided for you by the type on your own. A string object class simply provides a series of utility functions to manipulate a character array within.


Where could someone find a tutorial explaining java string format?

You can go to the library to find a book on java string format that will explain it. You can also go to different places like Oracle or Homeandlearn to get more information on the subject.


Which header is accessible through string function?

I guess you wanted to ask which header is to be included for string functions. It's string.h


What is string library functions syntax?

String library function is one which is used to perform an operation in C-programming,without which library functions likestrlen(),strcp(),strcmp(),strdup(),strrev(),etc..,.can be performed


Library functions in C programming?

They are very important. The most commonly used functions are the string and file handling ones.