Skip to main content
0 votes
1 answer
33 views

I am using Scala 3.3.7. When I do val str1 = raw"\\\" // compile error: unclosed string literal It is considering the \" as a single character. But when I do val str1 = raw"\\\\&...
Mradul Singhal's user avatar
0 votes
0 answers
91 views

I'm using Netbeans 12 for C++ development with C++ plugin 1.5. I'm setting a string variable value to an svg, using a raw string literal. std::string variable = R"(<svg .... )"; It ...
zerocukor287's user avatar
  • 1,683
2 votes
1 answer
266 views

How can I define raw string literal where the line breaks in the code are just for readability and there are no new-line characters (\r, \n) in the resulting string? Something like this: string str = ...
user764754's user avatar
  • 4,286
-1 votes
1 answer
48 views

I have an error where the os package seems to only be able to detect some folders and not others. My code is at the bottom; when I run it, I get the following outputs: "Bro reads", "It'...
user28761793's user avatar
1 vote
1 answer
141 views

In Javascript, we can use the ES6 raw string String.raw`raw text` to form a raw string, but it uses the template string syntax at the same time. If I want to store the string "${a}\\${b}, with \\...
Tastror's user avatar
  • 11
2 votes
1 answer
188 views

I get the following warning: SyntaxWarning: invalid escape sequence '\.' when the following shell block is present in a rule: """ curl {params.ua} -L {params.url} \ ...
Jamie Matthews's user avatar
5 votes
1 answer
109 views

Given this string, which I receive from an endpoint: "\u0000\u0000\u0000\u001A%<some-random-text\fcdtoolHxxx1-34e3-4069-b97c-xxxxxxxxxxx\u001E\n" I would like to iterate the string to ...
user2445220's user avatar
2 votes
3 answers
512 views

So I came across this simple problem of printing emojis in python. I assume there's multiple methods to do so, but these are the three major ones that I found:- Using UNICODE of the emoji Using CLDR ...
Kironmoy Mukherjee's user avatar
2 votes
2 answers
1k views

Constructing a string for bulk posting for the purposes of Elasticsearch, I need to conform to a particular newline formatting. A raw string literal like this does the job: let json = format!(r#&...
mike rodent's user avatar
  • 16.1k
2 votes
3 answers
278 views

In C#, using triple quotes ("""), how could I preserve the inner indentation of the second triple quotes? here it is a fiddle https://dotnetfiddle.net/ypP8Xp EDIT: This is only an ...
cflorenciav's user avatar
2 votes
2 answers
243 views

My program just doesn't work. I get this error. population/ $ make test test.c:6:9: error: missing terminating '"' character [-Werror,-Winvalid-pp-token] printf(R"EOF( ^ fatal error: ...
Cyrix's user avatar
  • 33
0 votes
0 answers
29 views

Im trying to use os.path.join, to open some dataframes, but it always says the \ fold even putting rawstring. when I create the "pattern_path" it works perfectly, and is only with a but ...
Gabriel Rodrigues's user avatar
3 votes
1 answer
3k views

New C# 11 feature "raw string literals" seems to be using \n to break the line: const string text = """ "header1";"header2" "value1";&...
Bizhan's user avatar
  • 17.2k
1 vote
1 answer
161 views

I am trying to parse a JSON raw string using json.loads but its throwing following error JSONDecodeError at /octopus/entries/53/test_sample_job/ Expecting ',' delimiter: line 3 column 27 (char 48) My ...
Mahesh's user avatar
  • 1,325
0 votes
0 answers
542 views

I have the following chunk of code: for i in range(len(files)): if files[i].split('^')[0]=='SequenceFile': number = files[i].split('^')[5] file = files[i].split('^')[2] ...
AScientist9797's user avatar

15 30 50 per page
1
2 3 4 5
11