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

Outlook vba mailItem camelcase

I am trying to define a MailItem variable in vba in Outlook 2013. However, every time I type Dim mail AS MailItem the MailItem gets updated to mailItem. As I understand, this is not a correct type. When I try MsgBox TypeName(mail), it shows…
aakashgupta.0205
  • 647
  • 1
  • 8
  • 23
0
votes
0 answers

What is the regular expression to validate camelCase name?

I am implementing ESLint id-match rule and I want to enforce camelCase convention. I have now came up with ^[a-z]+(?:[A-Z][a-z]*)*\d*$ that is used to validate: fooB fooBar fooBarBaz foo123 fooBar123 and that does not…
Gajus
  • 69,002
  • 70
  • 275
  • 438
0
votes
2 answers

PDO + Angular: how to reconcile DB underscore_case with Angular's camelCase?

I have an AngularJs app which connects to a database using php PDO APIs. This is the schematic data flow: DB: CREATE TABLE person ( ... first_name, ... ); php API: $stmt = $this->db->prepare("SELECT * FROM person"); …
MarcoS
  • 17,323
  • 24
  • 96
  • 174
0
votes
1 answer

How would you use XSL to transform all elements and all attributes from PascalCase to camelCase?

I would like to transform ALL/ANY elements and attributes (not just the explicit elements/attributes in my small sample below) in my XML file from PascalCase to camelCase. Does anyone have an XSL transform that can do this? This:
Michael
  • 434
  • 1
  • 5
  • 12
0
votes
2 answers

Global Json Formatting not working

I have a problem with my json formatting. I want that my json result is in camel case. I use the following code to achieve this (ASP.NET WebAPI Tip #3: camelCasing JSON): public static class WebApiConfig { public static void…
BendEg
  • 20,098
  • 17
  • 57
  • 131
0
votes
1 answer

Convert text file to camel case then save it

I got the code to remove the spaces in between the words but cant get it to capitalize beginning of each word. can any find what the problem is. it needs to be in camelcase. Orginal question is - Write a Java program that will read a text file…
0
votes
2 answers

Capitalizing letters following a space in MATLAB, then removing the space

o I am a neuroscience/biomedical engineering major currently taking a class in programming MATLAB. I have a hw program I have run into a problem with. I am super close to figuring it out. Basically I have to take a phrase like "woot I love matlab'…
0
votes
1 answer

odata and CamelCase

Faced with the problem of OData get JSON accordingly style Model EF. { Name: "..", Number: 123 } According to information on the Internet set CamelCase in WebAPI do line config.Formatters.JsonFormatter.SerializerSettings.ContractResolver =…
0
votes
1 answer

CakePHP CamelCase names after upload on server

My problem is quite strange. I'm developing CakePHP application. At the beginning I was doing all stuff on my local server with Windows... and works pretty good. But now I had to do upload to company's server. Now the app doesn't work due to…
VIPPER
  • 326
  • 4
  • 24
0
votes
1 answer

Mocking Camel http endpoint with resource stream in camel

I have a route like following from(direct:start) .process(new Processor() { @Override public void process(Exchange exchange) throws Exception { exchange.setProperty("doc_url",…
Santhosh Tangudu
  • 759
  • 9
  • 19
0
votes
1 answer

Python function to convert CamelCCase to camel_c_case?

I've looked over the other threads about camel case, but I couldn't find the answer for this case: I have -> "AddEEven" and I want -> "add_e_even" There are cases when I have -> "AddEven" and I want -> "add_even" (This case I know how to do it) I…
0
votes
1 answer

Is camelCode only common in object oriented languages?

Is it true, that there is a convention that purports, only to use camel code in object-oriented languages (as the W3C states in the link below)​​? If so why? From the W3C: It is common, in object oriented languages, to use camel-case names. You…
Senkaku
  • 197
  • 2
  • 10
0
votes
1 answer

how much camel caseing does CamelCasePropertyNamesContractResolver do?

using JSON.Net like this: JsonConvert.SerializeObject(someObject, Newtonsoft.Json.Formatting.None, new JsonSerializerSettings() { NullValueHandling =…
Homer
  • 7,594
  • 14
  • 69
  • 109
0
votes
0 answers

Solr:WordDelimiterFilterFactory for substrings of a camelcase word

I want to implement an Autocomplete-feature with Solr that work for source code identifiers in CamelCase. I use an EdgeNGramFilterFactory together with WordDelimiterFilterFactory to split CamelCase words:
Sonson123
  • 10,879
  • 12
  • 54
  • 72
0
votes
1 answer

un-camelCase code not working

camelCase.el emacswiki has a function to un-camelcase. But It doesn't seem to work. I added that piece to the camelCase.el itself. But can't get it to work. What am I missing ? Did anyone else have the same problem ? EDIT : I have added last two…
navderm
  • 799
  • 2
  • 11
  • 33