capitalization

Notepad++: Capitalize first letter by Shortcut?

扶醉桌前 提交于 2019-12-02 17:12:51
I've got a huge list of words (every single word in one line in a txt file) and certain words need to get capitalized manually (e.g. by hand), so I was looking if there's a shortcut in notepad++ (my editor currently) to automatically capitalize the first letter of a line but couldnt find one. Is there none? If not, can you advise me an alternative windows program to quickly do this by using a simple shortcut (so I can go through with the arrow-down key and use the shortcut whenever needed on a specific word)? thanks a lot Placido This can be easily done if the first letters are latin

UITableView titleForHeaderInSection shows all caps

試著忘記壹切 提交于 2019-12-02 15:45:45
I am using titleForHeaderInSection to show a header for a UITableView section. It worked fine with the iOS6 SDK, but the iOS7 SDK shows the header in all CAPS. I guess it's part of Apple's updated Human Interface Guidelines; all examples in there show headers in all caps. Also, all section headers in Settings on my iPhone are in all caps. However, I wonder if there is a way around that. Normally, I wouldn't mind showing caps if that improves consistency, but when I need to show people's names in a section header, it's a bit awkward. Anybody any idea how to get around to capitalization?

How to capitalize the first word of the sentence in Objective-C?

时间秒杀一切 提交于 2019-12-02 15:10:01
I've already found how to capitalize all words of the sentence, but not the first word only. NSString *txt =@"hi my friends!" [txt capitalizedString]; I don't want to change to lower case and capitalize the first char. I'd like to capitalize the first word only without change the others. Johan Kool Here is another go at it: NSString *txt = @"hi my friends!"; txt = [txt stringByReplacingCharactersInRange:NSMakeRange(0,1) withString:[[txt substringToIndex:1] uppercaseString]]; For Swift language: txt.replaceRange(txt.startIndex...txt.startIndex, with: String(txt[txt.startIndex])

Check for matching key in object regardless of capitalization

核能气质少年 提交于 2019-12-02 07:57:25
Given a key: 'mykey' And given an object: Object {Mykey: "some value", ...} And using the following if (key in myObject) syntax to check for a match... How can I check matching strings regardless of capital letters? For example: key mykey should be matched to Mykey in the object even though the M is capitalized. I am aware of a function to do this: How to uppercase Javascript object keys? I was looking to see if there was another way. You can create a function that does this, there's no native case-insensitive way to check if a key is in an object function isKey(key, obj) { var keys = Object

Console use CAPS for user input

喜欢而已 提交于 2019-12-02 03:39:11
I'm creating a Tic Tac Toe game as a console application using C# (which I am still learning). I want to know if it is possible to change the user input from an x to a capital X because it looks better. You can change a string to its capitalised representation using .ToUpper(); EDIT - To change it in the console window I'd use this instead: Console.ReadKey(false) will hide the pressed key from the console window, then you can write it yourself in capitals. http://msdn.microsoft.com/en-us/library/x3h8xffw.aspx 来源: https://stackoverflow.com/questions/18473933/console-use-caps-for-user-input

Case Sensitivity In Perl Script - How Do I Make It Insensitive?

北城以北 提交于 2019-12-01 12:33:23
How would I change the following markov script to treat capitalized and lowercase words as the same? The entire idea is to help increase the quality of output of my markov text generator. As it stands, if you plug 99 lowercase sentences into it and 1 capitalized sentence - you almost always find a non-markovized version of the capitalized sentence in the output. # Copyright (C) 1999 Lucent Technologies # Excerpted from 'The Practice of Programming' # by Brian W. Kernighan and Rob Pike # markov.pl: markov chain algorithm for 2-word prefixes $MAXGEN = 10000; $NONWORD = "\n"; $w1 = $w2 = $NONWORD

Case Sensitivity In Perl Script - How Do I Make It Insensitive?

岁酱吖の 提交于 2019-12-01 10:50:57
问题 How would I change the following markov script to treat capitalized and lowercase words as the same? The entire idea is to help increase the quality of output of my markov text generator. As it stands, if you plug 99 lowercase sentences into it and 1 capitalized sentence - you almost always find a non-markovized version of the capitalized sentence in the output. # Copyright (C) 1999 Lucent Technologies # Excerpted from 'The Practice of Programming' # by Brian W. Kernighan and Rob Pike #

Displaying euro symbol using unicode and changing characters to uppercase [closed]

大兔子大兔子 提交于 2019-12-01 09:33:15
I have to accomplish this using Java Part1: Output €188 using the character primitive data type . Use a Unicode for the Euro Symbol € Part2: Change the following char variables ‘j’’o’’e’ to upper case JOE and output the result. I've used this code, am I missing something? public class Test27 { public static void main (String args[]){ System.out.println("\u20ac" +"188"); String changeCase= "joe"; String result; result=changeCase.toUpperCase(); System.out.println( result); } } Cheers andrewdotn If the question is just about the Euro sign getting garbled—that is, the program import java.io.*;

Did capitals ever matter in email addresses? [closed]

只愿长相守 提交于 2019-11-30 10:59:15
My dad says capitals used to matter (years ago) for email addresses but don't anymore. I'm fairly sure they never did because something like that involving DNS/MX changes would not change. Especially with no easy to find record online. Let's look at this in pieces: The domain part of the email address needs to conform to RFC 1034 and is thus (and has always been) case insensitive: http://www.ietf.org/rfc/rfc1034.txt The local part of the email address is handled by the receiving mail server and thus whether or not it is treated case-sensitively in theory depends on that server. Some mail

Capitalization convention for JavaScript objects

我的未来我决定 提交于 2019-11-30 08:21:34
I know this question has no answer, but I'm curious to know what other people think. In a language like Java, it's a convention to begin classes with capital letters, and objects with lowercase letters. But what about JavaScript, where everything is an object? I've seen some people suggest capitalizing only objects that are treated as classes; i.e. function objects with a prototype, that are intended to be used with the new operator. Instances of those objects would be lowercased. That sounds logical. But what do you do about "global objects", where there's only one instance? Most people seem