camelcasing Questions
5
Solved
As this question is for the "big" Visual Studio and Resharper, I'd like to see that feature in VS Code too.
Scrolling through the shortcut list for VS Code, I couldn't find it but I'm hoping that ...
Delicatessen asked 14/11, 2016 at 16:37
8
Solved
Is there a way to split camel case strings in R?
I have attempted:
string.to.split = "thisIsSomeCamelCase"
unlist(strsplit(string.to.split, split="[A-Z]") )
# [1] "this" "s" "ome" "amel" "ase"
...
Platyhelminth asked 6/12, 2011 at 21:18
4
Solved
I'm using this function to convert CamelCase to dashed string:
function camel2dashed($className) {
return strtolower(preg_replace('/([^A-Z-])([A-Z])/', '$1-$2', $className));
}
it kinda works b...
Idea asked 8/5, 2012 at 23:7
8
Solved
I am trying to convert the keys of a multi-dimensional array from camelCase or StudlyCase/PascalCase to snake_case, with the added complication that some keys have a leading exclamation mark that I...
Mortgagor asked 18/9, 2009 at 13:14
8
Solved
How could I convert this to PascalCase and to camelCase?
var text = "welcome-to-a-New-day";
toPascalCase(text); // "WelcomeToANewDAY"
toCamelCase(text); // "WelcomeToANewDA...
Latrice asked 12/2, 2019 at 13:28
14
Solved
I would like to separate a CamelCase string into space-separated words in a new string. Here is what I have so far:
var camelCaps: String {
guard self.count > 0 else { return self }
var newSt...
Bremble asked 22/12, 2016 at 22:40
45
Solved
How can I convert a string into camel case using javascript regex?
EquipmentClass name or
Equipment className or equipment class name or Equipment Class Name
should all become: equipmentClassNam...
Ellerey asked 3/6, 2010 at 23:30
2
Solved
Is it possible to parse camel case string in to something more readable.
for example:
LocalBusiness = Local Business
CivicStructureBuilding = Civic Structure Building
getUserMobilePhoneNumber = ...
Thekla asked 6/6, 2011 at 15:9
3
Solved
I need to export a collection of items in camel casing, for this I use a wrapper.
The class itself:
[XmlRoot("example")]
public class Example
{
[XmlElement("exampleText")]
public string Example...
Kellam asked 3/1, 2013 at 16:23
6
Solved
I know that classes in Python are typically cased using camelCase.
Is it also the normal convention to have the file that contains the class also be camelCase'd especially if the file only contain...
Macrocosm asked 9/2, 2017 at 3:12
8
Solved
I want to convert these strings:
fooBar
FooBar
into:
foo-bar
-foo-bar
How would I do this in JavaScript the most elegant and performant way for any given string?
Unthinking asked 15/12, 2017 at 16:32
5
Solved
I have strings like:
$a = 'helloMister';
$b = 'doggyWaltz';
$c = 'bumWipe';
$d = 'pinkNips';
How can I explode at the capital letters?
Humbertohumble asked 25/1, 2012 at 5:44
16
Solved
What I was trying to achieve, was something like this:
>>> camel_case_split("CamelCaseXYZ")
['Camel', 'Case', 'XYZ']
>>> camel_case_split("XYZCamelCase")
['XYZ...
Commentate asked 28/4, 2015 at 9:52
14
Solved
My problem is that I wish to return camelCased (as opposed to the standard PascalCase) JSON data via ActionResults from ASP.NET MVC controller methods, serialized by JSON.NET.
As an example consid...
Immense asked 18/10, 2013 at 9:7
4
Solved
I have a method now that will convert my camelCase strings to kebab-case, but it's broken into three calls of preg_replace():
public function camelToKebab($string, $us = "-")
{
// insert...
Latinist asked 9/11, 2016 at 18:54
5
Solved
I have made this code. I want a small regexp for this.
String.prototype.capitalize = function() {
return this.charAt(0).toUpperCase() + this.slice(1);
}
String.prototype.initCap = function () {...
Villous asked 8/11, 2013 at 16:2
19
Solved
I have a string that I converted to a TextInfo.ToTitleCase and removed the underscores and joined the string together. Now I need to change the first and only the first character in the string to l...
Unspent asked 18/2, 2017 at 3:26
8
I am trying to post JSON in camelCase, and have followed the instructions here:
https://github.com/restsharp/RestSharp/wiki/Deserialization#overriding-jsonserializationstrategy
public class Camel...
Aires asked 30/9, 2015 at 13:53
0
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 ou...
Toilworn asked 20/9, 2022 at 15:15
2
Solved
I am trying to do some text manipulations using Notepad++ macros. My last step is converting camelCase strings to SNAKE_CASE. So far no luck. I'm not very familiar with regex so can't write my own ...
Chapa asked 3/5, 2017 at 19:26
3
Solved
I am trying to come up with a regex for both Upper and lower Camel case.
Here is what I tried
(([A-Z][a-z0-9]*){2,}|([a-z][A-Z0-9]*){2,})
Trying to match Upper camel case with this - ([A-Z][a-z...
Mehta asked 26/9, 2013 at 7:22
9
Solved
How do I find all PascalCased words in a document with a regular expression?
If you don't know the word Pascal cased, I'm only concerned with leading Upper camel case (i.e., camel cased words in ...
Cum asked 14/7, 2009 at 21:59
7
Solved
I'm about to write a parser for a language that's supposed to have strict syntactic rules about naming of types, variables and such. For example all classes must be PascalCase, and all variables/pa...
Propertied asked 20/1, 2010 at 17:47
15
Solved
Coming from a C# background the naming convention for variables and methods are usually either camelCase or PascalCase:
// C# example
string thisIsMyVariable = "a"
public void ThisIsMyMet...
Eleonoreeleoptene asked 1/10, 2008 at 21:1
5
Solved
Say I have a function that transforms kebab-case to camelCase:
camelize("my-kebab-string") === 'myKebabString';
I'm almost there, but my code outputs the first letter with uppercase too:...
Tarshatarshish asked 19/8, 2019 at 12:11
1 Next >
© 2022 - 2024 — McMap. All rights reserved.