Camel case is a language-independent naming convention in which an identifier name will start with a lowercase letter and each additional word within the name will start uppercase, such as customerName, printInvoice, etc.
Questions tagged [camelcasing]
403 questions
0
votes
1 answer
ASP.NET Core - JsonConvert.DeserializeObject does not respect CamelCasePropertyNamesContractResolver
I need to output some JSON file to client app. So, I have following code
var content = System.IO.File.ReadAllText(this.path);
var model = JsonConvert.DeserializeObject(content, new JsonSerializerSettings() {
ContractResolver = new…

lambidu
- 1,038
- 10
- 19
0
votes
1 answer
Script to replace UpperCamel case keys with lowerCamel case keys in JSON file
Would like ideas for the easiest way to do this to multiple files(example below). I prefer TCL. Can this be done easily with regsub?
Note: Only want keys to change to lowerCamel case, not the values.
"FooBar": [
{
"NumOne":…

Kenadams
- 47
- 1
- 6
0
votes
3 answers
Convert CamelCase to underscore_case
I'm trying to convert column value from CamelCase to underscore_case, this is what I tried :
SELECT regexp_replace(ColumnName, '([A-Z])', '_\1', 2) FROM Table;
but this will return d_a_r_k_C_y_a_n for the value darkCyan.
How can I resolve this ?

Renaud is Not Bill Gates
- 1,684
- 34
- 105
- 191
0
votes
1 answer
Yii2 actionname with Uppercase do not work
i am using windows with yii2 advanced template. if i create an action like: actionShowInvoiced i am getting Error: Not Found #404 (Page not Found.
If i name the Action actionShowinvoiced it is working.
of course i call the function like…

Jonas Aeschlimann
- 135
- 1
- 8
0
votes
1 answer
JSON.Net CamelCasePropertyNamesContractResolver returns different JSON after updating the version
I have been using JSON.net with CamelCasePropertyNamesContractResolver in an MVC project to return JSON.
I have been using JSON.net 4.5 for a while and after updating it to version 9 the returning JSON format is different
example :
in 4.5 a…

Buzzzzzzz
- 1,074
- 13
- 17
0
votes
0 answers
How to convert object's attributes in kebab-case to camelCase
I'm receiving a json formatted in kebab-case, like so :
{name: "田中 太郎", profile-image: "", visit-frequency: "10"}
I have multiple objects that I want to display in my template, so I'm using a v-for. But I can't figure out how to display…

j-printemps
- 1,288
- 11
- 21
0
votes
1 answer
FOSOAuthServerBundle + FOSRestBundle + CamelCase = Not authenticating
I have been working on my server in Symfony 2.8, building a rest api which returns json objects in camelCase style, the problem now is that when I integrate the OauthServer bundle it lauches this error Invalid grant_type parameter or parameter…

8370
- 153
- 10
0
votes
2 answers
How can I camelCase a phrase with Dragon NaturallySpeaking's advanced scripting?
From time to time, typically when coding, I would like to dictate a phrase so that it is camelCased a phrase. For example, when I dictate sentence generator I would like Dragon NaturallySpeaking to write sentenceGenerator.
How can I camelCase a…

Franck Dernoncourt
- 77,520
- 72
- 342
- 501
0
votes
1 answer
Python 2.7 - remove special characters from a string and camelCasing it
Input:
to-camel-case
to_camel_case
Desired output:
toCamelCase
My code:
def to_camel_case(text):
lst =['_', '-']
if text is None:
return ''
else:
for char in text:
if text in lst:
text =…

Marco Giuseppe de Pinto
- 605
- 2
- 12
- 29
0
votes
0 answers
Creating Javascript RegEx to validate hyphenated BEM and camelCase
I have this Regex for detecting hyphenatedBEM in CSS files
^([\.\%]?[a-z]*[-]?[a-z0-9\-]*)(\.[a-z0-9\-]*)?(__[a-z0-9]*[-]?[a-z0-9\-]*)?(--[a-z0-9]*[-]?[a-z0-9\-]*)?(\:[a-z]*)*$
but I would also like it to detect CamelCase as well...
I need to do…

Takuhii
- 819
- 2
- 8
- 26
0
votes
1 answer
How to split CamelCase into a list (python)
I have been trying for a month and can't get anywhere with this. I have an exam very soon but I can't figure this out. I need a way to split a CamelCase statement into a list in python, and the list should have room for 10 words. If less than 10…

unidentified2000
- 13
- 1
- 3
0
votes
0 answers
Find symbol without recognizing CamelHumps
Pressing CTRL+N in IntelliJ Idea allows you Search for symbols in the workspace. I want to search for any class with this name pattern:
*IT (ending with the letters IT, e.g. HappyHippoIT)
IntelliJ automatically recognizes such uppercase letters as…

Sebastian Barth
- 4,079
- 7
- 40
- 59
0
votes
2 answers
Separating strings in CamelCase to individual strings
The question is as follows:
"A string exists in CamelCase format. For example: "ThisIsACamelCaseString".
A procedure/function is required that will:
1) prompt for the original entry
2) separate each word of the string
3) store each word in a…

SkepticArt
- 31
- 6
0
votes
0 answers
PHP PDO Camel Case
beginTransaction();
// PDO
try {
$pdo->setAttribute( PDO::ATTR_CASE, PDO::CASE_NATURAL );
$result = $pdo->query($query);
$test =…

Doomenik
- 868
- 1
- 12
- 29
0
votes
0 answers
Highlighting CamelCase in WebStorm
Is there any possibility to play with editor setting in order to achieve that ?
I would like to see if there is an option to highlight the Camel Cased letters, with different color or different brightness.

Boaz Berebi
- 1
- 2