Skip to main content
New: Stack Overflow For Agents. The next generation of knowledge exchange. Learn more
Filter by
Sorted by
Tagged with
Filter by Employee ID
5 votes
2 answers
234 views

Consider the following two lines of code: const char c = 'a'; const string s = "" + c; The 2nd line is giving me error CS0133: The expression being assigned to 's' must be constant. ...
Mike Nakis's user avatar
Best practices
0 votes
8 replies
165 views

I was writing code for naming image file with parameter values in python. Here, parameter_list holds values of each paramter in float and function_name means the name of functions that transform the ...
user32836321's user avatar
Best practices
1 vote
15 replies
251 views

I have code that imports spreadsheets of 2 columns of numbers for a scientific application. While creating some test files with excel, I inadvertently created one with "CSV UTF-8" encoding. ...
Mark D Henning's user avatar
Advice
1 vote
2 replies
90 views

in java the primitives types like int, boolean, double,... are in lowercase and String is an object that's why it start with a capital letter(from what I know). But why is it the case in dart, ...
Jotunheim's user avatar
Tooling
1 vote
7 replies
163 views

I want to check if a String only has latin letters (a-z / A-Z), but it may also contain letters with accents (á, à, ã, â, é, è, etc). What is the best way to do this? If possible, I'd prefer to use ...
rain's user avatar
-4 votes
1 answer
174 views

I'm trying to understand why an OpenAPI generator produces the wrong Rust source. For that, I first have to understand the statement I'm looking at (I cannot test it, as it is inside a block that ...
Marc Le Bihan's user avatar
0 votes
0 answers
109 views

I have a PHP variable which looks like this: $news="Do you have a business idea and want to evaluate its market potential? The Fédération des Entreprises Russes (FER) organises a practical ...
Andy McRae's user avatar
Best practices
0 votes
16 replies
129 views

I want to have a management wrapper to a collection of mutable strings. A std::vector<std::string> as a member variable came to mind. Creating an entry in the list with vector.emplace_back() and ...
salbeira's user avatar
Best practices
3 votes
1 replies
145 views

In any program, module, or object, one might need or encounter a file or folder path or partial path as a string or as an object, e.g. a pathlib object. Do you use a naming convention for ...
BugFinder's user avatar
0 votes
1 answer
220 views

I ran into a bug in my code today when I null-coalesced a submission value to an empty string which was being validated and sanitized by sscanf(). My coding intention was to only call a method when ...
mickmackusa's user avatar
0 votes
0 answers
49 views

I'm running into a type issue while constructing stock ticker symbols. I have a market suffix dictionary, and I concatenate each stock code with its market suffix: stockCode = symbol(`000001`600001`...
Olivia's user avatar
0 votes
1 answer
56 views

How do I return the text between the single quotes in an Oracle VARCHAR field. The field contains the text pattern below. I need to find the string PTYPE=> and then grab the text between the quotes....
Kathleen Fleming's user avatar
Advice
0 votes
2 replies
62 views

I'm new to functional programming, and I'm trying to write a function that takes a list (of indeterminate size) of values and return a string of a formatted version of each value. For instance (in ...
ld16's user avatar
Advice
1 vote
19 replies
288 views

Imagine I have a long string 10 kb characters, filled with random ASCII characters. And I want to lowercase them. One way i could do that is by using a simple operation like: inline char lowercase(...
revolutionary's user avatar
Advice
0 votes
10 replies
169 views

I've been working on a string library in C(just for learning purposes). It's called cstring and the full source is here. I use _Generic with function macros so you can call the same function name with ...
Abhiram's user avatar

15 30 50 per page
1
2 3 4 5
12324