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
1
vote
2 answers
lowerCamelCase, ignoring the first letter of string
Trying to make a function that returns UpperCamelCase if true is passed, and lowerCamelCase if false.
I've got the first bit ok so far, but can't figure out how to ignore the first letter of the string. I've used charAt[0] but that returns only the…

VisualXZ
- 213
- 3
- 17
1
vote
3 answers
Http triggers in azure functions - serializing objects in camelcase
I have created an HttpTriggered azure function that returns a response in capital case. How do I convert it to camel case?
return feedItems != null
? req.CreateResponse(HttpStatusCode.OK, feedItems
:…

horatius
- 784
- 1
- 12
- 30
1
vote
1 answer
How to replace camelCasing in all files in a folder using Python or c#?
I have a folder that has a mix and match of camelCase and non camel case filenames. I have used this in Python to remove underscores and was hoping I could easily tweak it to replace 'camelCaseExample' with 'camel Case Example':
folder =…

user3486773
- 1,174
- 3
- 25
- 50
1
vote
0 answers
Delphi RAD Studio How to use CamelHumps Words Like Intellij IDEA?
I'm doing something with Delphi. However, I can't seem to figure out why RAD Studio doesn't support roaming trough my code with Ctrl+Left/Ctrl+Right on my CamelCase notation words. Eclipse and Intellij IDEA both support this feature but RAD Studio…

enginear
- 29
- 2
- 9
1
vote
3 answers
Capitalize first letter of a camelcase string in Javascript
I'm trying to obtain a camel case string (but with the first letter capitalized).
I'm using the following regular expression code in JavaScript:
String.prototype.toCamelCase = function() {
return this.replace(/^([A-Z])|\s(\w)/g, function(match, p1,…

Fer
- 21
- 1
- 1
- 2
1
vote
3 answers
Laravel Eloquent - Existing Database with Mix of snake_case and camelCase Columns
I have a large existing database that I would like to access with Laravel/Eloquent.
I'm using Laravel 5.2,
I have generated models using the "user11001/eloquent-model-generator" package
I have generated autocompletion using the command php…

mils
- 1,878
- 2
- 21
- 42
1
vote
1 answer
Convert String AnyName into Camelcase
I'm working for a while with Microsoft Power Query M and I have the situation that I need to transform names in the first column into Camelcase.
I receive the data in form Any_Name. First step I do is to replace _ by "":
#"Replaced Value" =…

Irgendw Pointer
- 1,770
- 3
- 30
- 67
1
vote
0 answers
lowercase JSON keys to camelCase
I am trying to convert the keys of this JSON to camelCase:
{
"status": true,
"data": {
"id": "28c0905c-5abc-4d8b-88a3-d41421e76ccc",
"username": "mmmmmm",
"password": "111111",
"email": "mmmmmmm@gmail.com",
"birthdate":…

Marckaraujo
- 7,422
- 11
- 59
- 97
1
vote
2 answers
How to set Json data to camelCase once on the client side
How does one go about turn serialized json data into camelCase data rather than all the properties upper case?
In my View here is how I am turn the c# in Json
team = @Html.Raw(Json.Encode(Model.Employees));
Here is the data: "All of this is Test…

Filling The Stack is What I DO
- 6,553
- 14
- 54
- 86
1
vote
1 answer
Zend Framework isn't looking for camel cased actions when using the router
Hi guys im having a spot of bother, hope someone can shed some light on this.
For some strange reason my route comes up saying action does not exist unless i change the camel casing to all lower case for that actions name then it works fine. but…

adrian
- 20
- 2
1
vote
1 answer
Formatting text as CamelCase in Visual Studio
I would like to get from lines such as this:
#define FACILITY_USERMODE_HYPERVISOR 53
to a line such as this, for use in an enum:
zFacilityUsermodeHypervisor = FACILITY_USERMODE_HYPERVISOR,
A quick regex replace does half the trick, is there a…

Felix Dombek
- 13,664
- 17
- 79
- 131
1
vote
2 answers
What's the proper constant naming convention for words stylized in CamelCase?
Everyone knows that Java's constant naming convention is uppercase with underscores between words, like USERNAME and ERROR_CODE.
But should words/names that are normally spelled in CamelCase also use an underscore? Should SomeBrand™ be named…

shmosel
- 49,289
- 6
- 73
- 138
1
vote
2 answers
Insert space between two captalized words?
I have two words combined like
KitnerCoster
And I want to add a space in the middle, is there any sort of trick anyone knows if separating two words that are both capitalized and that is the only difference.

Steven
- 13,250
- 33
- 95
- 147
1
vote
1 answer
CamelCase to Spaced Sentence Case regex
Almost there, but I've found a couple of holes with my regex to turn CamelCase into Spaced Sentence Case. It does well on most cases (pun intended), but it's getting hung up on the first hyphenated word. I can't figure out why.
import re
#…

Ghoul Fool
- 6,249
- 10
- 67
- 125
1
vote
3 answers
force CamelCase on domain name in browser's address bar
Can I force a domain name to appear CamelCase in the browser's address bar? All browsers seem to force lowercase on the domain. Can this be accomplished with the .htaccess file... or some other means?
I'm generally fine with the all lowercase…

kingjeffrey
- 14,894
- 6
- 42
- 47