All Questions
Tagged with strings programming-languages
8 questions
2
votes
3
answers
629
views
Why do most language's definition of substring allow substring("abc", 3) => ""
I've seen most languages have it be the case for their substring method that using the length of a given string in the method as the start index will give you an empty string. It is most definitely ...
4
votes
2
answers
878
views
Are string characters assigned a numerical value in context of how they are assigned in a programming language?
For context I am fairly new to programming after returning back to it after programming a number of years ago... I was reading Bjarne's intro programming with C++ and was wondering if alphabetical ...
0
votes
5
answers
1k
views
Is String processing more complex than number processing in programming languages?
I feel that string processing is always more complex than Numbers or mathematical processing. Are our programming languages are designed this way that mathematical operations are pretty much straight ...
-1
votes
5
answers
2k
views
How common is string manipulation, really? [closed]
I've noticed a lot of programming introductions (almost any language) usually include a heavy barrage of string manipulation quite early, such as:
Count the number of "xx" in the given string. We'll ...
86
votes
11
answers
34k
views
Why is String immutable in Java?
I couldn't understand the reason of it. I always use String class like other developers, but when I modify the value of it, new instance of String created.
What might be the reason of immutability ...
3
votes
1
answer
740
views
Types of quotes for an HTML templating language
I'm developing a templating language, and now I'm trying to decide on what I should do with quotes. I'm thinking about having 3 different types of quotes which are all handled differently:
...
16
votes
16
answers
6k
views
What do you use string reversal for? [closed]
In PHP it's strrev(), in Rails it's .reverse, but most languages don't have any string reverse function. Some have array reverse functions that can be used on characters. I was thinking this must be a ...
6
votes
2
answers
621
views
Why do people confuse C-type strings and STL strings [closed]
The last week I saw at least three questions where people were confused about the differences between char * and std::string or made some related mistakes.
Don't get me wrong, I don't have a problem ...