Top "String" questions

A string is a finite sequence of symbols, commonly used for text, though sometimes for arbitrary data.

std::string formatting like sprintf

I have to format std::string with sprintf and send it into file stream. How can I do this?

c++ string formatting stdstring c++-standard-library
Convert a space delimited string to list

i have a string like this : states = "Alaska Alabama Arkansas American Samoa Arizona California Colorado" and I want to split …

python string
Replace a character at a specific index in a string?

I'm trying to replace a character at a specific index in a string. What I'm doing is: String myName = "domanokz"; …

java string replace indexing character
Remove all spaces from a string in SQL Server

What is the best way to remove all spaces from a string in SQL Server 2008? LTRIM(RTRIM(' a b …

sql sql-server string whitespace trim
startsWith() and endsWith() functions in PHP

How can I write two functions that would take a string and return if it starts with the specified character/…

php string
python: SyntaxError: EOL while scanning string literal

I have the above-mentioned error in s1="some very long string............" Does anyone know what I am doing wrong?

python string string-literals
Java String array: is there a size of method?

I come from a php background and in php, there is an array_size() function which tells you how many …

java arrays string
How to do case insensitive string comparison?

How do I perform case insensitive string comparison in JavaScript?

javascript string
Check if a string contains another string

I want to find if a string contains a ","(comma) in it. Do we have any other option other than …

string vba
Trim string in JavaScript?

How do I trim a string in JavaScript? That is, how do I remove all whitespace from the beginning and …

javascript string trim