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
0
votes
1 answer

indexerror for loop issue

I am having difficulty converting a camel case string into separate words and appending these into a list. It almost completes the code but it gives an IndexError: string index out of range. Please could anyone help with this?? The output when run…
Amash Mir
  • 9
  • 2
0
votes
3 answers

How do you separate text in excel vba by "CamelCase" and numbers

I'm trying to make a molecular composition calculator but i can seem to separate a formula by case and numbers into different cells. Is it possible to do this in excel? Eg: Cl2H0 ----> Cl | 2 | H | 0
user7091645
0
votes
1 answer

Deserialize JSON that was serialized with Newtonsoft CamelCasePropertyNamesContractResolver

A guy at work used: var s = new JsonSerializerSettings(); s.ContractResolver = new CamelCasePropertyNamesContractResolver(); To create some JSON, but now I have to deserialize into objects that do not use camel case, without use annotations in the…
Gerry
  • 1,031
  • 1
  • 14
  • 30
0
votes
0 answers

Can't camelcase UTF-8 character

I am dealing with words that start with letters like "ú". I want to convert them to camelcase in the DB or at least display them camelized. Eg: ú => Ú. >> cit.name => "újváros" >> cit.name.encoding => # >> cit.name.valid_encoding? =>…
Zsolt
  • 253
  • 3
  • 15
0
votes
0 answers

Eclipse Juno Open Resource Camel Case failing for classes ending with numbers

I've made a few failed attempts to file a bug for Eclipse - any suggestion? This is a great time-saver opening classes in Eclipse but now there's a bug in my way... I use camel case shortcuts in Open Resource all the time. Now in the JUNO version…
0
votes
1 answer

PHP preg_match_all CamelCase, obtaining prefix_ and CamelCased elements

I'm trying to use preg_match_all to return an separate arrays for various elements in a CamelCase string. In my example, I'm attempting to obtain the prefix of a string in one array and everything else ( the camelcase portion of the string ) split…
0
votes
2 answers

Rails thinks "faves" is referring to a model named "Fafe"

I have a model named Fave. It belongs to another model named User. I'm trying to find a User's Faves by calling @user.faves. My server gives me back the following error: NameError: uninitialized constant User::Fafe Why would it think the singular…
Joe Morano
  • 1,715
  • 10
  • 50
  • 114
0
votes
1 answer

Vim capturing groups regex to replace camel case string with blank space at the end

I have line of code like this one: variableInCamelCase <- map["variableInCamelCase"] I need to make it like this: variable_In_Camel_Case <- map["variableInCameCase"] Only the first word must be converted, I'm trying to find a regex to do it, and I…
AR89
  • 3,548
  • 7
  • 31
  • 46
0
votes
5 answers

How to separate a irregularly cased string to get the words? - Python

I have the following word list. as my words are not all delimited by capital latter. the word list would consist words such as 'USA' , I am not sure how to do that. 'USA' should be as a one word. cannot be separated. myList=[u'USA',u'Chancellor',…
bob90937
  • 553
  • 1
  • 5
  • 18
0
votes
1 answer

Does ColdFusion throw error if function is not camelCase?

I am trying to investigate a bug and am not super familiar with ColdFusion. There is a function call to isdefined(), which I believe should be isDefined(). What behavior does ColdFusion take if it runs into this kind of case discrepancy with a…
Eric Dauenhauer
  • 710
  • 6
  • 23
0
votes
1 answer

CamelCase delete numbers

I am trying to use CamelCase to separate words in order to make title properly. Some of these strings are also with number. For example: 1962NBAFin4als becomes NBA finals. So it is just ignoring numbers. I tried to do some research in internet, but…
Blanca Hdez
  • 3,513
  • 19
  • 71
  • 93
0
votes
0 answers

camel casing json results only for a particular api call

I am sending JSON result from my API in pascal case, but for only a particular web-api action I want to sent the response in camelCase. I can do it globally using settings.ContractResolver = new CamelCasePropertyNamesContractResolver(); But how…
harishr
  • 17,807
  • 9
  • 78
  • 125
0
votes
1 answer

CodeClimate CamelCase issue

I recently tried codeclimate. In the style codeclimate report an error on a parameter that is not camel notation. the function is written like this: function asd ($_par) {} I am aware that it is in the form: function asd ($parameterInCamel)…
XaBerr
  • 350
  • 3
  • 19
0
votes
2 answers

HL7-Fhir : are search query parameters case-sensitive or always lowercase?

Question 1]When checking the reference implementation example at : http://fhirtest.uhn.ca I see that the search for http://fhirtest.uhn.ca/baseDstu2/Patient?namE=Meier returns and error message like: { "resourceType":"OperationOutcome", …
Stef Heyenrath
  • 9,335
  • 12
  • 66
  • 121
0
votes
0 answers

Convert Title Case Text to camelCaseText

How would I convert Hello World to helloWorld? Currently trying: 'Hello World'.replace(/\b ([A-Z]?)/g, function(v) { console.log(v);return v.toLowerCase(); }) }) I.e., plan is to match 'word boundary, space, uppercase letter' and then replace with…
mikemaccana
  • 110,530
  • 99
  • 389
  • 494