Top "String-literals" questions

String literals concern the syntactic representation of literal constant strings in C and C++.

What is the backslash character (\\)?

What is the string literal \\ backslash? What does it do? I have thought about it but I do not understand …

java string string-literals
Best way to convert string to array of object in javascript?

I want to convert below string to an array in javascript. {a:12, b:c, foo:bar} How do I convert …

javascript jquery arrays literals string-literals
Regular expression for a string literal in flex/lex

I'm experimenting to learn flex and would like to match string literals. My code currently looks like: "\""([^\n\"\\]*(\\[.\n])*)*"\"" {/*matches …

c regex lex string-literals flex-lexer
String literals: Where do they go?

I am interested in where string literals get allocated/stored. I did find one intriguing answer here, saying: Defining a …

c memory string-literals
What does %S mean in PHP, HTML or XML?

I'm looking at Webmonkey's PHP and MySql Tutorial, Lesson 2. I think it's a php literal. What does %s mean? It's …

php html xml string-literals
Unicode encoding for string literals in C++11

Following a related question, I'd like to ask about the new character and string literal types in C++11. It seems …

c++ unicode c++11 utf string-literals
C# two double quotes

I want to print two double quotes in C# as the output. How to do this? I mean the output …

c# string-literals
How to write unicode cross symbol in Java?

I'm trying to write this unicode cross symbol (𐀵) in Java: class A { public static void main(String[] args) { System.out.…

java unicode string-literals unicode-literals
C++ warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

I am using gnuplot to draw a graph in C++. The graph is being plot as expected but there is …

c++ string-literals
How do I encode Unicode character codes in a PowerShell string literal?

How can I encode the Unicode character U+0048 (H), say, in a PowerShell string? In C# I would just do …

powershell unicode string-literals unicode-literals