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
11
votes
4 answers
How to convert a string to camelcase in Google Spreadsheet formula
Trying to create a formula to turn a string of words separated by spaces into camelcase

Ryan Schumacher
- 1,816
- 2
- 21
- 33
11
votes
2 answers
How to convert any pascal case JSON object to camel case JSON object?
I tried using CamelCasePropertyNamesContractResolver, however it does not convert pascal property names into camel casing?
Note: this is an example only, my json input is unknown, I only the json pascal casing.
using Newtonsoft.Json;
using…

001
- 62,807
- 94
- 230
- 350
11
votes
1 answer
Serialize enum values as camel cased strings using StringEnumConverter
I'm trying to serialize a list of objects to JSON using Newtonsoft's JsonConvert. My Marker class includes an enum, and I'm trying to serialize it into a camelCase string. Based on other Stackoverflow questions, I'm trying to use the…

Brian
- 3,850
- 3
- 21
- 37
11
votes
4 answers
Splitting CamelCase with regex
I have this code to split CamelCase by regular expression:
Regex.Replace(input, "(?<=[a-z])([A-Z])", " $1", RegexOptions.Compiled).Trim();
However, it doesn't split this correctly: ShowXYZColours
It produces Show XYZColours instead of Show XYZ…

Sean
- 14,359
- 13
- 74
- 124
10
votes
12 answers
camel case method names
I understand the reason to camel case variable names, but I've always wondered why you would camel case a method name? why is it toString() and not ToString()? What purpose does it serve?

Jeremy
- 44,950
- 68
- 206
- 332
9
votes
3 answers
Should we capitalize "i" when we use "iOS" as a word in a class name?
Some brand names don't actually like to capitalize on their first letter, and changing can make it looks completely different, especially for "iOS". There's more like "mCore", "macOS", and so on. When it comes to class names, should I capitalize the…

iry
- 375
- 1
- 2
- 8
9
votes
2 answers
Formatting camel case to readable in PHP while skipping abbreviations
So i am stuck - I have looked at tons of answers in here, but none seems to resolve my last problem.
Through an API with JSON, I receive an equipment list in a camelcase format. I can not change that.
I need this camelcase to be translated into…

Stender
- 2,446
- 1
- 14
- 22
9
votes
4 answers
MySQL: Can't give tables a name in Upper Camel Case (Pascal Case)
I read that it is best practise to have table names in Pascal Case (ThisIsMyTableName).
Therefor I would like to change my tables in MySQL. But neither phpmyadmin, nore SQL Manager 2005 for MySQL will let me. The names stay to appear in lowercase,…

Pascal Klein
- 23,665
- 24
- 82
- 119
9
votes
3 answers
Using ispell/aspell to spell check camelcased words
I need to spell check a large document containing many camelcased words. I want ispell or aspell to check if the individual words are spelled correctly.
So, in case of this word:
ScientificProgrezGoesBoink
I would love to have it suggest this…

Wilfred Springer
- 10,869
- 4
- 55
- 69
9
votes
7 answers
Regex that matches Camel and Pascal Case
I'm about to write a parser for a language that's supposed to have strict syntactic rules about naming of types, variables and such. For example all classes must be PascalCase, and all variables/parameter names and other identifiers must be…

Marcin
- 7,874
- 7
- 45
- 49
9
votes
8 answers
Check for camel case in Python
I would like to check if a string is a camel case or not (boolean). I am inclined to use a regex but any other elegant solution would work. I wrote a simple regex
(?:[A-Z])(?:[a-z])+(?:[A-Z])(?:[a-z])+
Would this be correct? Or am I missing…

Dexter
- 11,311
- 11
- 45
- 61
8
votes
2 answers
CamelCase breaking change in Json.NET version 4
I've just upgraded our Json.NET from version 3.5 Release 7 to 4.0 Release 8, and realized that seralization isn't done in the same way. When serializing an object that contains a standard Dictionary the 3.5 version left the dictionary keys…

mikaelnet
- 101
- 1
- 4
8
votes
4 answers
How can I cut(1) camelcase words?
Is there an easy way in Bash to split a camelcased word into its constituent words?
For example, I want to split aCertainCamelCasedWord into 'a Certain Camel Cased Word' and be able to select those fields that interest me. This is trivially done…

lindelof
- 34,556
- 31
- 99
- 140
8
votes
2 answers
Replacing underscores in JSON using JQ
I'm working with the woocommerce API to retrieve and store information. Currently our setup is designed to use camel case instead of underscores. I'm using jq to process our information, but I'm curious how I can use the sub(regex, tostring)…

chipoglesby
- 331
- 1
- 4
- 13
8
votes
1 answer
Elasticsearch : search results on clicking on Hashtag
I have a hashtag with tags in camel Case like #teamIndia. Now when this hashtag is clicked, it should fetch all results which have "#teamIndia" in it, It should first show results with "#teamIndia", then results with "teamIndia" and then "team…

Kunal Dethe
- 1,254
- 1
- 18
- 38