Questions tagged [camelcasing]

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.

403 questions
1
vote
1 answer

how to find out what case style a string is (pascal, snake, kebab, camel)

I want to write a program that outputs whether a string is styled in pascal case, camel case, snake case, kebab case, or none of them. in the first line, we should take integer n from input. then, in the next n lines, we should take an integer k and…
Fateme
  • 41
  • 4
1
vote
2 answers

camelCase function in C, unable to remove duplicate chars after converting to uppercase

void camelCase(char* word) { /*Convert to camelCase*/ int sLength = stringLength(word); int i,j; for (int i = 0; i < sLength; i++){ if (word[i] == 32) word[i] = '_'; } //remove staring char…
Shy9566
  • 11
  • 2
1
vote
2 answers

How to find and remove all underscores, and make the next letter after the underscore uppercase

i have object with underscores keys const obj = { api_key: 1, is_auth: false } i want to get camelCase keys const obj = { apiKey: 1, isAuth: false }
Slava
  • 25
  • 1
  • 2
1
vote
2 answers

What's the best way to turn all the keys of an nested array of objects to a camel case?

I want to turn all the keys of my array of objects to a camelCase in Typescript. I have the following data: [ { "Name":"Custom property", "Details":{ "Address":"Huston", "Price":"1000000", }, …
Enchantres
  • 853
  • 2
  • 9
  • 22
1
vote
2 answers

how can I edit lots of swift string at once?

In my project, I have Localizable.string file which is having more than 10,000 lines keyValue format. I need to convert all of keys which are dotCase format like "contentsList.sort.viewCount" to lowerCamelCase. how can I convert by using swift…
1
vote
3 answers

Convert folder and file names to camel case

I have a list of folders and files whose names contain spaces. How can I change the names into camel case? for oldname in * do newname=`echo $oldname | sed -e 's/ /_/g'` if [ "$newname" = "$oldname" ] then continue fi if [ -e…
Amir Amara
  • 39
  • 9
1
vote
4 answers

I am struggling with trying to use the Where() method in C# to turn a string into its camel case, code does not do anything

as mentioned in the title I am trying to turn a given string with spaces in between words into a camel case format, for example: "camel case" becomes "camelCase". My method is to try and turn the string into an array of characters, and then check if…
Ziyad Arif
  • 29
  • 3
1
vote
4 answers

Convert kebab-case to camelCase

I'm looking for a simple return inside a method that converts any use of kebab-case and turns it into camelCase. For example: hello-world Becomes helloWorld I'm trying to use .replaceAll() but I can't seem to get it right!
Venom
  • 11
  • 1
  • 3
1
vote
0 answers

Is there any Font ligature with CamelCase separator

I have a problem, that I cannot read properly, even with glasses, if the letters are small and condensed I have a hard time to figure out the word. And also I am a web Designer, often use React.js. and you could not imagine what its like for me to…
GrayGalaxy
  • 91
  • 7
1
vote
2 answers

.NET 6 - Change Json Property Casing

How can I change the casing of the property names of a json without performing model binding? JsonElement serialization ignores PropertyNaming JsonSerializer options as is also confirmed here: https://github.com/dotnet/runtime/issues/61843 The…
BasiK
  • 546
  • 6
  • 20
1
vote
1 answer

Spring Boot Admin application - use of InstanceExchangeFilterFunction to convert snake_case to camel case for UI

I have an client api that use snake case naming strategy (custom ObjectMapper). Everything is set up properly and works great, but of course some things of SBA( version 2.3.1) UI doesn't work correctly(metrics, env...). I tried to implement…
1
vote
1 answer

Laravel create method with camelCase

I would like to use the create method with camelCase named variables, something like this: $review = Review::create((request()->validate([ 'userId' => 'required', 'movieId' => 'required', 'title' => 'required', …
Zoran
  • 11
  • 1
1
vote
1 answer

Convert response to camel case on JS client side and convert request data to snake case on server fastapi

Is there a way to convert incoming body data from JS client side to snake_case, and convert outcoming response data from the server to camelCase. Besides, I want to implement it with Pydantic. By the way, I am a total newbie in FastAPI + Pydantic
floppy_
  • 25
  • 4
1
vote
1 answer

How to convert snippet placeholder from CamelCase to snake_case

I would like to create a VS Code snippet where I input a part in CamelCase, and the same string is output in snake_case at some other place in the snippet. Based on this SO post Here's my attempted snippet, but I have a trailing _ that needs to be…
Qortex
  • 7,087
  • 3
  • 42
  • 59
1
vote
3 answers

Java - check if under_score string is in a list of lowerCamel strings

Consider the following keys (under_score) and fields (lowerCamel): keys = ["opened_by","ticket_owner","close_reason"] fields = ["openedBy","ticketOwner","closeReason"] I'm looking for an efficient way in Java to check whether key is in fields,…
user3819295
  • 861
  • 6
  • 19