Function stoi not declared?
I'm trying to use stoi to convert a string to an integer, however it says it's not declared. I have the standard lib...
How do I check if a string contains another string in Swift??
In Objective-C the code to check for a substring in an NSString is: NSString *string = @"hello Swift"; NSRange tex...
How can I check if a string represents an int, without using try/except??
Is there any way to tell whether a string represents an integer (e.g., '3', '-17' but not '3.14' or 'asfasfas') With...
Check if URL has certain string with PHP?
I would like to know if some word is present in the URL. For example, if word car is in the URL, like www.domain.co...
Multiline string literal in C#?
Is there an easy way to create a multiline string literal in C#? Here's what I have now: string query = "SELECT fo...
C# equivalent to Java's charAt()??
I know we can use the charAt() method in Java get an individual character in a string by specifying its position. Is...
How can I get the last 7 characters of a PHP string??
How would I go about grabbing the last 7 characters of the string below? For example: $dynamicstring = "2490slkj40...
How to do case insensitive string comparison??
How do I perform case insensitive string comparison in JavaScript? ...
warning: 'characters' is deprecated: Please use String or Substring directly?
characters - an instance property of String, is deprecated from with Xcode 9.1 It was very useful to get a substrin...
warning: 'characters' is deprecated: Please use String or Substring directly?
characters - an instance property of String, is deprecated from with Xcode 9.1 It was very useful to get a substrin...
OCaml - How do I convert int to string??
How do I convert an int to a string? Example: 1 to "1". ...
How to change string into QString??
What is the most basic way to do it? ...
Ruby: How to convert a string to boolean?
I have a value that will be one of four things: boolean true, boolean false, the string "true", or the string "false...
Replace spaces with dashes and make all letters lower-case?
I need to reformat a string using jQuery or vanilla JavaScript Let’s say we have "Sonic Free Games". I want to c...