Questions tagged [case-conversion]
28 questions
2
votes
1 answer
Bash ,, and ^^ case conversion are not matching patterns
I have been experimenting with the bash internal case conversion and found what I believe are inconsistencies.
I define a variable with the value "aBcDeF" and try converting the first upper case character in the range [A-D] to lower case. I would…

user1683793
- 1,213
- 13
- 18
2
votes
2 answers
Sed: snake case functions
I need a sed script to automatically convert C functions to lower snake case.
What I have so far is the following which will separate camel case words with underscores, but it doesn't lower case them and it affects everything.
sed -i -e…

aganm
- 1,245
- 1
- 11
- 30
1
vote
0 answers
Follow-Up on String Case Conversions
After having digested this post I collected its knowledge into a self-contained C++ test program (tested with GCC-4.6 with flag -std=gnu++0x) that includes all the alternative methods described in it. It is tested to work on english letters.…

Nordlöw
- 11,838
- 10
- 52
- 99
1
vote
1 answer
What is the case convention of Nuxt.js file and folder naming?
I'm creating files and folders in nuxt. Now I'm facing some confusion on the case convention of folders and file naming. Which case conventions are following the nuxt.js? Like,
In the pages folder:
folder: resetPassword / ResetPassword /…

Pias Das
- 11
- 2
1
vote
2 answers
ToTitleCase() method is not working with Special Characters
I have a string that needs to be converted such that it converts first character to Upper case. with ToTitleCase method it works fine except for the case when there is a special characters.
Below is the code and expected result
String…

user2081126
- 77
- 1
- 11
1
vote
1 answer
How can I convert uppercase input to the lowercase?
I have a predicate that takes two arguments in which the first argument can be a compound one and the second argument is always B. I have also defined some new operators like + and &.
pvc(A, B) :- somestuff(A, B).
Here the user may type something…

selubamih
- 83
- 3
- 15
1
vote
3 answers
Title Case a string with TypeScript
Do TypeScript provide any built in methods on strings to capitalize or Title case a string?
I am aware of the methods toLocaleLowerCase(), LowerCase(), toLocaleUpperCase() and UpperCase(). Does TypeScript has another case convertion methods?
user5539517
0
votes
1 answer
case conversion to lowercase even on using strupr
I wrote this program to convert vowels to uppercase and consonants to lowercase for a given input.Once the string is converted to uppercase its being converted to lowercase but i haven't used strlwr.here is the code..
void main()
{
char a[20],…
0
votes
2 answers
Convert Table name from lower case to upper case
The script below shows an example query for data that have been converted from lower case, but it only changed the data on one column in the table.
Use MYF601T
Go
UPDATE ROAD_LINE
SET NAM = UPPER(NAM)
However, the following script that I'm trying…

RehanNoradibah
- 11
- 1
- 1
0
votes
4 answers
Converting a lowercase char to uppercase without using an if statement
How I can convert a lowercase char to uppercase without using an if statement?. I.e. don't use code like this:
if(c > 'a' && c < 'z')
{
c = c-32;
}

user3465947
- 13
- 4
0
votes
1 answer
Case conversion of file name (regexp) in Emacs file browser
I have a similar problem to that addressed in
Emacs: regular expression replacing to change case
I want to use Emacs' file browser mode Dired to rename a file from 08 - hey you.mp3 to 08 - Hey you.mp3.
I type % R to replace ^\([0-9]* -…

marcosaedro
- 103
- 4
-1
votes
7 answers
Conversion of string to upper case without inbuilt methods
I am trying to perform conversion from a lowercase to uppercase on a string without using any inbuilt functions (other than ord() and char()). Following the logic presented on a different thread here , I came up with this.
def uppercase(str_data):
…

uzhy
- 95
- 2
- 4
- 14
-3
votes
1 answer
How to convert camelCase to MACRO_CASE
How does one convert camelCase to MACRO_CASE in JavaScript?

Noel Schenk
- 724
- 1
- 8
- 19