Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
String (computer science)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Character string functions == {{See also|Comparison of programming languages (string functions)}} [[String function]]s are used to create strings or change the contents of a mutable string. They also are used to query information about a string. The set of functions and their names varies depending on the [[programming language|computer programming language]]. The most basic example of a string function is the [[string length]] function β the function that 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. This function is often named <code>[[comparison of programming languages (string functions)#length |length]]</code> or <code>len</code>. For example, <code>length("hello world")</code> would return 11. Another common function is [[concatenation]], where a new string is created by appending two strings, often this is the + addition operator. Some [[microprocessor]]'s [[instruction set architecture]]s contain direct support for string operations, such as block copy (e.g. In [[intel x86]]m <code>REPNZ MOVSB</code>).<ref>{{cite web|url=https://docs.oracle.com/cd/E19120-01/open.solaris/817-5477/eoizn/index.html|title=x86 string instructions|url-status=live|archive-url=https://web.archive.org/web/20150327220944/http://docs.oracle.com/cd/E19120-01/open.solaris/817-5477/eoizn/index.html|archive-date=2015-03-27}}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)