Questions tagged [casing]

38 questions
2
votes
3 answers

Converting uppercase string to title case in Objective-C

I created the following method which starts by using the built-in convertStringToTitleCase method on NSString but it really just capitalizes the first letter of each word. I see in .NET there is a method for TextInfo.ToTitleCase which attempts what…
Brennan
  • 11,546
  • 16
  • 64
  • 86
1
vote
2 answers

Convert characters to Upper Case in DataGridView

My form contains several DataGridView controls that have two columns. I want the data that the user types into column 1 to be converted to upper case. The data in column 0 is read only and is populated by my program. It is numeric and does not…
Dan Z
  • 101
  • 13
1
vote
1 answer

Adding a Second Capital Letter after a Prefix

I have an Excel sheet (MS Excel 2010) with a column of city names (Cell A2:A4) each name is conjoined as one one whole word with a leading Name Prefix (i.e., De, La, Las, Ja, etc.). I also have a range of Keywords (Cell B2:B4) that I would like to…
Miaka3
  • 339
  • 1
  • 10
  • 27
1
vote
3 answers

Java regex to find whitespaces or upper-case characters

I have a method that validates a string and makes sure it doesn't have any whitespaces or upper-case characters: boolean validate(String input) { if(input.matches(".*\\S.*([A-Z]+)")) { return false; } return…
smeeb
  • 27,777
  • 57
  • 250
  • 447
1
vote
2 answers

What is the correct casing of mapping in vim?

I'm confused with these mappings: map map map map Are they different ? Which is the correct way to write this mapping ? Same question with: map map map
nowox
  • 25,978
  • 39
  • 143
  • 293
1
vote
0 answers

Casing when creating a Windows service using sc.exe

When I use the command: sc create "myservice" binPath= "C:\somepath\whatever.exe" DisplayName= "MyService" start= auto obj= ".\username" password= password the service is created as follows: DisplayName: myservice ServiceName: myservice As you can…
0
votes
0 answers

How to uniformize dictionary keys casing in Python

I have a consumer lambda, that consumes data from two different services, that provide the "same-ish" reposes, that I'll need to reconcile, for instance: Response from service A: (There will be N items in each array, showing one as example). [{ …
Eduardo Elias Saléh
  • 806
  • 1
  • 11
  • 23
0
votes
1 answer

How can I create a JS Method to convert a string to title case with exceptions and not manipulate the prototype?

I am trying to correct casing issues due to improper data input (writing in all CAPS, all lower case, or improper unit capitalizations) when returning records from and older DB. I found this solution for converting a string to title case, but I want…
Mtullis
  • 117
  • 9
0
votes
3 answers

Git/Windows - Case sensitivity issues when checking out a branch (and pulling/merging a branch). Affected files are all lowercase in Windows Explorer

Having a really strange issue with git and Windows regarding case sensitivity. I am not a master at git but I'm also not a beginner. Just want to throw that out there. Problem I am facing: Clone a repository (don't specify branch, just grab what's…
JayLee21
  • 13
  • 3
0
votes
2 answers

Should I capture email addresses in lowercase in an uppercase system?

Your opinions please. In our system the decision was made that all fields (except notes) will be forced into uppercase. I don't like it, but the system's intended users aren't very computer literate, so for line-of-business use I suppose it is…
Andre Luus
  • 3,692
  • 3
  • 33
  • 46
0
votes
1 answer

Changing Case with Exception Specifically in between dollar signs

Input: MECR-tree obtained using \textbf{MCAR-Miner} with $S_{\mathrm{U}} = data$ 25{\%} and $S_{\mathrm{L}} = string$ 12.5{\%} Change it to Title Case but exempt the text within the $ signs. Output should be: Mecr-Tree Obtained Using…
jee-ar
  • 131
  • 4
0
votes
4 answers

Regex and the characters case

Okay, I got a rather simple one (at least seems simple). I have a multi lined string and I am just playing around with replacing different words with something else. Let me show you... #!/usr/bin/perl -w use strict; $_ = "That is my coat.\nCoats…
David
  • 592
  • 3
  • 6
  • 13
0
votes
1 answer

CaseSensitivity in an user-defined function T-SQL

I have an user-defined function in T-SQL which uses CHARINDEX() internally. I take @caseSensitivity(bit) parameter as an input, which should decide the casing(collation) of the CHARINDEX() function. Is there a way to do that without making two…
zhulien
  • 507
  • 2
  • 8
  • 17
0
votes
5 answers

Should I really Pascal case almost all public identifiers in C#?

I'm coming to C# from java. Java has a set of conventions that make it easy to see the use of an identifier by its casing. Reading up on the Microsoft conventions it seems like they want you to Pascal case almost everything except parameters. It…
user430788
  • 2,143
  • 2
  • 17
  • 17
0
votes
1 answer

My find command can't find records if the casings are not right

My find command can't find records if the casing are not right This is the command I used: Do Until Cells(i, j) = txttno i = i + 1 If Cells(i, j) = "" Then MsgBox ("Record does not exist") Exit Sub End If Loop So, when i want…
user3024808
  • 47
  • 2
  • 8