Character String Functions
See also: Comparison of programming languages (string functions)String functions are used to manipulate a string or change or edit the contents of a string. They also are used to query information about a string. They are usually used within the context of a computer programming language.
The most basic example of a string function is the length(string)
function, which returns the length of a string (not counting any terminator characters or any of the string's internal structural information) and does not modify the string. For example, length("hello world")
returns 11.
There are many string functions that exist in other languages with similar or exactly the same syntax or parameters. For example, in many languages, the length function is usually represented as len(string)
. Even though string functions are very useful to a computer programmer, a computer programmer using these functions should be mindful that a string function in one language could in another language behave differently or have a similar or completely different function name, parameters, syntax, and results.
Read more about this topic: String (computer Science)
Famous quotes containing the words character, string and/or functions:
“The truth and regularity of a character is not, in justice, to be looked upon as broken, from any one single act or omission which may seem a contradiction to it:Mthe best of men appear sometimes to be strange compounds of contradictory qualities.”
—Laurence Sterne (17131768)
“The most perfect expression of human behavior is a string quartet.”
—Jeffrey Tate (b. 1943)
“One of the most highly valued functions of used parents these days is to be the villains of their childrens lives, the people the child blames for any shortcomings or disappointments. But if your identity comes from your parents failings, then you remain forever a member of the child generation, stuck and unable to move on to an adulthood in which you identify yourself in terms of what you do, not what has been done to you.”
—Frank Pittman (20th century)