answersLogoWhite

0


Best Answer

String functions are the set of functions that we generally need while playing with strings like:

strlen - finds length of the string

strcat - for concatenation

strcpy - for copying

strcmp - for comparing, etc.

Thanks

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

There are a huge range of string operations. A comprehensive list of them including how to use them can be found in the java api:

http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

In any programming language, you would use a string (or equivalent in other languages) any time you want to store a text. For example, to store the name of a person.

Strings in java are special data types that can hold a series of alpha numeric values. For ex:

String name = "James Bond 007";

The above statement declares a string with name as "name" and values as "James Bond 007". Anywhere you use the variable "name" it will be substituted with its value.

Strings are a very useful data type that can hold almost any sequence of characters that can be entered using the keyboard. Strings have many features like concatenation, substring etc that add more functionality.

This answer is:
User Avatar

User Avatar

Wiki User

8y ago

String Methods:

  • MethodDescriptioncharAt() returns the character at the specified index.
  • charCodeAt() returns a number indicating the Unicode value of the character at the given index.
  • concat() combines the text of two strings and returns a new string.
  • indexOf() returns the index within the calling String object of the first occurrence of the specified value, or -1 if not found.
  • lastIndexOf() returns the index within the calling String object of the last occurrence of the specified value, or -1 if not found.
  • localeCompare() returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order.
  • length() returns the length of the string.
  • match() used to match a regular expression against a string.
  • replace() used to find a match between a regular expression and a string, and to replace the matched substring with a new substring.
  • search() executes the search for a match between a regular expression and a specified string.
  • slice() extracts a section of a string and returns a new string.split()Splits a String object into an array of strings by separating the string into substrings.
  • substr() returns the characters in a string beginning at the specified location through the specified number of characters.
  • substring() returns the characters in a string between two indexes into the string.
  • toLocaleLowerCase() the characters within a string are converted to lower case while respecting the current locale.
  • toLocaleUpperCase() the characters within a string are converted to upper case while respecting the current locale.
  • toLowerCase() returns the calling string value converted to lower case.
  • toString() returns a string representing the specified object.
  • toUpperCase() returns the calling string value converted to uppercase.
  • valueOf() returns the primitive value of the specified object.
This answer is:
User Avatar

User Avatar

Wiki User

11y ago

In C, functions exist to perform operations. Some functions manipulate variables in various ways.

C itself does not have any functions. Basic functions are provided by libraries, which your own program files will then use. Some of these functions work with strings.

Because strings are character arrays, they cannot be acted upon by simple operators. Even while other languages have concatenation operators (+ or .), C requires that you use strcat() or write your own string concatenator to join two strings together.

In short, string functions come in handy when you want to work with strings in C. See the related links below for more information on C string functions.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

String functions are used in computer programming languages to manipulate a string or query information about a string (some do both).

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the different built in string functions in JavaScript?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can a string be converted into a number?

Most programming languages have some built-in functions to do that.


What are built-in javascript classes?

Javascript does not have classes


How to perform string operations like concatenation compare etc without using built in functions?

performing string operation using pointers


How to capitalize the first letter of a string without using built in C functions?

jst subtract 32 from first character of string to convert it into capital


Built-in functions in C?

You can have #include after Stdio.h ...it has so many built in mathematical functions like CIRCULAR FUNCTIONS, ABSOLUTE VALUE and more..Sadly, built-in functions and library functions are different things... there are no built-in functions in C (except for sizeof, which isn't an actual function).


Structures that are similarly built but have different functions are called?

homologus structures


How do you find JavaScript on your computer?

You don't. JavaScript is a special type of language which you will typically find embedded in the program which use them. For example, each web browser on your computer will have its own version of JavaScript.


What are built-in functions in c programs?

There are no built-in functions in C as such. What we call built-in functions are actually part of the C standard function library, which is just a function library like any other, but one that ships with all implementations of C. The functions we specifically regard as being built-in are those functions that do not require us to include any specific library headers. These functions are imported by default, hence they are all considered built-in. They are as follows: The string management functions (strcpy, strncpy, strcmp, strncmp, strlen, strcat, strncat, strchr, strrchr, strstr and strtok), memory management functions (malloc, calloc, realloc and free), buffer manipulation functions (memcpy, memcmp, memchr, memset and memmove), character functions (isalnum, isalpha, iscntrl, isdigit, isgraph, islower, isprint, ispunct, isspace, isupper, isxdigit, tolower and toupper) and error handling functions (perror, strerror).


Do you need to download java script software first before installing Adobe Flash Player?

No. There is no such thing as "JavaScript Software." JavaScript technologies are built directly into your web browser.


Mozilla JavaScript Debugger and Microsoft Script Debugger?

Try an add on called firebug in firefox. It works great with javascript. IE has its own built-in web development tools which works fine in my view.


Do any camcorders have built in editing functions?

The Canon HF21, Sony HDR-XR200V and JVC Everio all have built-in editing functions.


Write a program to count the length of a string without using built in functions?

In JavaScript: To find the length of the string we you length method. __ __ __ Click the button to return the number of characters in the string "Hello World!". click here __ __ function myFunction() { var str = "Hello World!"; var n = str.length; document.getElementById("demo").innerHTML = n; } __ __ __ Hope this helps. Thank you