Questions tagged [title-case]

In string or sentence formatting, title case is the term used for capitalizing the first character of each principal word.

In string or sentence formatting, title case is the term used for capitalizing the first character of each principal word.

95 questions
2
votes
3 answers

Adding exceptions to a TitleCase Method C#

I have the following code which will convert a string to TitleCase. I would like to create an exception to this, so that if the string entered, finds the exact characters in sequence, it will ignore it and proceed to convert the rest of the string.…
saas
  • 25
  • 1
  • 5
2
votes
4 answers

Does anyone know how to use titlecase in component.ts file instead in html file?

I tried the following code but it's not working. import { Component } from '@angular/core'; import { TitleCasePipe } from '@angular/common'; @Component({ selector: 'my-app', templateUrl: './app.component.html', styleUrls: […
Lei De Bug
  • 23
  • 1
  • 4
2
votes
1 answer

bbedit - how to change multiple strings to title case?

In bbedit there is a feature where you select the text, choose text->change case->make title case from the menu and it will act accordingly. Is there a way to select multiple strings of text across files in your project then apply the same text…
user1689274
  • 373
  • 1
  • 4
  • 14
2
votes
3 answers

MVC EditorFor to Title Case

How do you convert input value to title case in EditorFor? I know doing @Html.EditorFor(model, new { htmlAttributes = new { @style = "text-transform:uppercase" } }) will only change the client side so I need to change it manually on server side. I…
Mace Munch
  • 65
  • 3
  • 10
2
votes
3 answers

Convert string to title case - Emacs Lisp

I am looking for an elisp function that accepts a string and returns the same in title case (i.e., all words capitalized, except for "a", "an", "on", "the", etc.). I found this script, which requires a marked region. Only, I need a function that…
Adam
  • 2,137
  • 16
  • 29
2
votes
1 answer

titlecase pipe does not work with ternary operator angular2

I have this code in component.html
{{item.value == 'user' ? 'student' : item.value | titlecase}}
itemArray can have one of this values: admin |…
T04435
  • 12,507
  • 5
  • 54
  • 54
2
votes
1 answer

AWK: convert messy record to Title Case

I have a pipe delimited file with the following syntax: |ID Number|First Name|Middle Name|Last Name|#, Street, City|etc.. Some records are messy and I would like to have the strings be converted into title case. Based on other questions regarding…
2
votes
0 answers

How to convert a character to Unicode title case, handling 1:M and not just converting to uppercase?

How do I convert a character into Unicode title case? This seems like a simple question, but consider the following: Title case differs from upper case for some characters (reference). Character.toTitleCase(char c) only handles 1:1 mappings (e.g.…
Duncan Jones
  • 67,400
  • 29
  • 193
  • 254
2
votes
8 answers

Add spaces between words in a camelCased string then uppercase the first word

I have two types of strings, hello and helloThere. What I want is to change them so they read like: Hello and Hello There depending on the case. What would be a good way of doing this?
Frank
  • 23
  • 1
  • 3
2
votes
1 answer

Convert a String to title case in android

Before marking my question as duplicate, notice that there is a fundamental misunderstanding in that thread as to what "title case" means. In the english language, Title Case is not the same as having each word capitalized. In a title, we…
Katedral Pillon
  • 14,534
  • 25
  • 99
  • 199
2
votes
1 answer

Using the Title case in an SQL statement

I have tried various Title Case solutions from here and they give me an 0 in the column. I have to change the LEN to LENGTH to get it to run. If I strip the statement down to its 2 parts it works. UPDATE names SET surname =…
Peter Brooks
  • 49
  • 10
2
votes
3 answers

Formatting species names in a column in R

I am working with quite a large database containing a column called 'Species_name' this is a factor column and includes the names of around 40 different species. As R is often case sensitive (particularly when plotting graphs) I was wondering if it…
user3489562
  • 249
  • 1
  • 3
  • 11
2
votes
2 answers

Using title case with Ruby 1.8.7

How can I capitalize certain letters in a string to make it so that only designated words are capitalized. Must Past These Test: "barack obama" == "Barack Obama" & "the catcher in the rye" == "The Catcher in the Rye" So far I have a method that…
asing
  • 385
  • 2
  • 7
  • 16
1
vote
1 answer

How do I perform name standardization in nifi using update record processor?

In my nifi flow, I need to perform name standardization for a specific column. Examples include: Making name title case If it contain mc before something such as donald, make it McDonald and such other things. How do I perform all of these in a…
1
vote
0 answers

How to make a string Title Case in Ruby

A string is considered to be in title case if each word in the string is either (a) capitalised (that is, only the first letter of the word is in upper case) or (b) considered to be an exception and put entirely into lower case unless it is the…
Sam P
  • 107
  • 8