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
16
votes
2 answers
How to parse Camel Case to human readable string?
Is it possible to parse camel case string in to something more readable.
for example:
LocalBusiness = Local Business
CivicStructureBuilding = Civic Structure Building
getUserMobilePhoneNumber = Get User Mobile Phone Number
bandGuitar1 = Band Guitar…

Nazariy
- 6,028
- 5
- 37
- 61
16
votes
1 answer
How to disable camel case selection in Eclipse
Is it possible to disable support for camel case in the Eclipse text editor? I want the next word key binding to select the next word, not the next fragment of a word.
I'd given up on eclipse because the editor doesn't work like any other text…

Mark Lilback
- 1,154
- 9
- 21
16
votes
2 answers
Convention for maven properties: "dot case" or "camel case"?
Using java and Maven, what is the convention for maven properties?
I am posting 2 examples here, both of which are in widespread usage. Which one is correct, according to convention?
Example A
…

vikingsteve
- 38,481
- 23
- 112
- 156
16
votes
2 answers
TypeScript - Use PascalCasing or camelCasing for module names?
I'm wondering if I should use PascalCasing or camelCasing for my modules names, so far I've always used PascalCasing, i.e: Ayolan.Engine.Rendering instead of Ayolan.engine.rendering (I keep PascalCasing for the container, since I want the global…

Vadorequest
- 16,593
- 24
- 118
- 215
16
votes
2 answers
All our MySQL constraints have gone lowercase. What can cause this?
We have a camelCase naming convention on everything we do - from database tables to object properties, columns, database indexes and constraints.
We have been working with these conventions for two months now on a new project and everything was…

Swader
- 11,387
- 14
- 50
- 84
14
votes
7 answers
Splitting CamelCase in R
Is there a way to split camel case strings in R?
I have attempted:
string.to.split = "thisIsSomeCamelCase"
unlist(strsplit(string.to.split, split="[A-Z]") )
# [1] "this" "s" "ome" "amel" "ase"

kmace
- 1,994
- 3
- 23
- 39
14
votes
7 answers
How do I covert kebab-case into PascalCase?
How could I convert this to PascalCase and to camelCase?
var text = "welcome-to-a-New-day";
toPascalCase(text); // "WelcomeToANewDAY"
toCamelCase(text); // "WelcomeToANewDAY"

Benedict Ng-Wai
- 143
- 1
- 4
14
votes
16 answers
How do I convert an NSString from CamelCase to TitleCase, 'playerName' into 'Player Name'?
I'm looking for the easiest way to convert a string from camelback format to Title Case format.
How do I change 'playerName' into 'Player Name'?

Evolve
- 8,939
- 12
- 51
- 63
14
votes
6 answers
Function to Make Pascal Case? (C#)
I need a function that will take a string and "pascal case" it. The only indicator that a new word starts is an underscore. Here are some example strings that need to be cleaned up:
price_old => Should be PriceOld
rank_old => Should be RankOld
I…

Paul Fryer
- 9,268
- 14
- 61
- 93
13
votes
3 answers
have jQuery ignore case in attribute/data names?
We're using HTML5's data-* attributes for some of our client side interaction set up. jQuery uses these to do its thing.
The catch is that the HTML coming in may vary. Obviously this is the problem that should be fixed but I'm not always in control…

DA.
- 39,848
- 49
- 150
- 213
13
votes
4 answers
How to return JSON from Rails with camelcased key names
I'm building a JS app with a Rails backend and in order not to confuse snake and camel cases, I want to normalize it all by returning camelcase key names from the server. So user.last_name would return user.lastName when returned from the API.
How…

Zack Shapiro
- 6,648
- 17
- 83
- 151
13
votes
4 answers
Using preg_replace() to convert alphanumeric strings from camelCase to snake_case
I have a method now that will convert my camel case strings to snake case, but it's broken into three calls of preg_replace():
public function camelToUnderscore($string, $us = "-")
{
// insert hyphen between any letter and the beginning of a…

Matt
- 6,993
- 4
- 29
- 50
13
votes
2 answers
How to convert column value to CamelCase with Oracle?
I need a way to convert a column value to CamelCase with Oracle 10g. I prefer to do it in-line with my select statement but if I have to use a function, that is OK too.
I don't need to support underscores, just spaces.
Thanks

Ayyoudy
- 3,641
- 11
- 47
- 65
11
votes
1 answer
JavaScriptSerializer().Serialize : PascalCase to CamelCase
I have this javascript object
var options:
{
windowTitle : '....',
windowContentUrl : '....',
windowHeight : 380,
windowWidth : 480
}
And I have this C# class
public class…

user385411
- 1,445
- 1
- 18
- 35
11
votes
2 answers
Change properties to camelCase when serializing to XML in C#
I have multiple DTO classes that are (de)serialized from and to XML. I want to use the C# convention of PascalCase for properties, but I want them to appear as camelCase in the XML.
Example:
[XmlElement("config")]
public ConfigType Config { get;…

sashoalm
- 75,001
- 122
- 434
- 781