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
3
votes
4 answers
CamelCase JSON WebAPI Sub-Objects (Nested objects, child objects)
I'm creating a complex object with children (nested objects) to be returned from my web api controller. The object contains list of other object types. These sub-object types within the list follow the pascal casing used in .NET.
var persons =…

Andre Young
- 61
- 1
- 7
3
votes
3 answers
Can I convert between UpperCamelCase, lowerCamelCase and dash-case in filenemes with Bash?
I am in the process of merging efforts with another developer. I am using UpperCamelCasing, but we decided to follow Google's HTML style guide in using lower case and separating words with hyphens. This decision requires me to rename quite some…

Andra
- 687
- 2
- 9
- 20
3
votes
2 answers
How to detect CamelCase using Powershell
I would like to split song names that are in the form ArtistTitle so that they end up as Artist - Title
Is there a way in Powershell to detect the CamelCase boundary and perform the replacement? This should only affect the first case boundary and…

KalenGi
- 1,766
- 4
- 25
- 40
3
votes
1 answer
Java Camel case apostrophe issue
Can anyone please help regarding camel casing strings that contain apostrophes, whereby I don't want the next letter after the apostrophe to be put to upper case.
My code reads from a txt file and then processes it as accordingly.
For…

user2404110
- 33
- 3
2
votes
1 answer
Camelcase, Underscore, etc. - how committed should you be?
Ok, I'm not trying to start a discussion on Camelcase vs Underscore here, it doesn't matter what you pick, just stick to your choice.
Rather, what I would like peoples opinion on, is how strict and committed you should be in your choice when…

Naatan
- 3,424
- 4
- 32
- 51
2
votes
4 answers
Convert lower camelCase to PascalCase in c#?
I need to convert camelcase keys to Pascal key and I got good solution from stackoverflow.
But the issue is I don't know how to exclude . in conversion.
Please find the below example:
var input= "customer.presentAddress.streetName";
Expected Output…

Prasanna Kumar J
- 225
- 1
- 13
2
votes
0 answers
How to configure naming conventions with clang-format?
My team is interested in adding a tool to enforce style guidelines for C++. Two of the best options we have researched are clang-tidy and clang-format.
clang-format appears to meet nearly all of our needs, however one thing I have been unable to…

ryansantaana
- 21
- 4
2
votes
1 answer
Camel case program in erlang
I have a string "value" and need to convert it to "Value" how can we do that using camel case
Output :
value = Value

Vani
- 31
- 2
2
votes
4 answers
How to split a camelCase string into an array in awk?
How can I split a camelCase string into an array in awk using the split function?
Input:
STRING="camelCasedExample"
Desired Result:
WORDS[1]="camel"
WORDS[2]="Cased"
WORDS[3]="Example"
Bad Attempt:
split(STRING, WORDS, /([a-z])([A-Z])/);
Bad…

Raven
- 23
- 4
2
votes
1 answer
System.Text.Json does not camelize properties of the dynamic property
I'm using ASP.NET Core and System.Text.Json.
Here's my sample action method:
[HttpGet]
public object Person()
{
dynamic relatedItems = new ExpandoObject();
relatedItems.LastName = "Last";
var result = new
…

Hossein Fallah
- 1,859
- 2
- 18
- 44
2
votes
1 answer
Simply format SQLAlchemy models returned by FastApi endpoint
Suppose I have a simple SQLAlchemy class and a simple Flask o FastAPI implementation like this:
from sqlalchemy.ext.declarative import declarative_base
from pydantic import BaseModel
Base = declarative_base()
class A(Base):
__tablename__ =…

Manu Sisko
- 269
- 2
- 17
2
votes
2 answers
Trying to break CamelCase instances with Python code - issue
beginner coder here and would really appreciate some insight on this. Trying to create code to break instances of CamelCase - for example, gottaRunToTheStore, helloWorld, etc. and add space between the main words in the input string.
So my code…

kashow
- 23
- 3
2
votes
3 answers
Keep capitals in snake_case to camel case
Below is my code and I was wondering if there was a way to keep caps the way they are?
Such as "num_to_SMS" would still become "numToSMS"?
def to_camel(ident):
return ''.join(x.capitalize() or '_' for x in…
user15577370
2
votes
2 answers
Automatically convert all the identifiers in appropriate case
So for example,
pub enum Format {
Undefined,
R4g4UnormPack8,
R4g4b4a4UnormPack16,
B4g4r4a4UnormPack16,
R5g6b5UnormPack16,
B5g6r5UnormPack16,
R5G5B5A1_UNORM_PACK16,
B5G5R5A1_UNORM_PACK16,
A1R5G5B5_UNORM_PACK16,
…

marknikky
- 101
- 1
- 5
2
votes
0 answers
ASP.Net (not Core) Web API - Change JSON answer formatted in Camel case to Pascal case
I have been introduced to an already existing C# ASP.Net Web API project a week ago. It returns all the data in JSON and Pascal Case, and this data is used by websites using React.Js which are case sensitive.
During the last week, after a commit…

Error 404 Brain not found
- 428
- 5
- 12