uppercase

iPhone Force Textbox Input to Upper Case

时间秒杀一切 提交于 2019-12-18 01:22:20
问题 How do I force characters input into a textbox on the iPhone to upper case? 回答1: Set autocapitalizationType to UITextAutocapitalizationTypeAllCharacters on the UITextField . See UITextInputTraits protocol (adopted by UITextField) for more details. 回答2: This solution is not fully satisfying. Even with the autocapitalizationType set to UITextAutocapitalizationTypeAllCharacters , the user can still press caps to release the caps lock. And the textField.text = [textField.text

How i can translate uppercase to lowercase letters in a rewrite rule in nginx web server?

半世苍凉 提交于 2019-12-17 23:36:42
问题 I need to translate the address: www.example.com/TEST in ---> www.example.com/test 回答1: Yes, you are going to need perl. If you are using Ubuntu, instead of apt-get install nginx-full, use apt-get install nginx-extras, which will have the embedded perl module. Then, in your configuration file: http { ... # Include the perl module perl_modules perl/lib; ... # Define this function perl_set $uri_lowercase 'sub { my $r = shift; my $uri = $r->uri; $uri = lc($uri); return $uri; }'; ... server { ...

How can I force input to uppercase in an ASP.NET textbox?

↘锁芯ラ 提交于 2019-12-17 09:29:44
问题 I'm writing an ASP.NET application. I have a textbox on a webform, and I want to force whatever the user types to upper case. I'd like to do this on the front end. You should also note that there is a validation control on this textbox, so I want to make sure the solution doesn't interfere with the ASP.NET validation. Clarification: It appears that the CSS text transform makes the user input appear in uppercase. However, under the hood, it's still lower case as the validation control fails.

C string to uppercase in C and C++

你离开我真会死。 提交于 2019-12-13 12:53:01
问题 While I was putting together a to-uppercase function in C++ I noticed that I did not receive the expected output in C. C++ function #include <iostream> #include <cctype> #include <cstdio> void strupp(char* beg) { while (*beg++ = std::toupper(*beg)); } int main(int charc, char* argv[]) { char a[] = "foobar"; strupp(a); printf("%s\n", a); return 0; } Output as expected: FOOBAR C function #include <ctype.h> #include <stdio.h> #include <string.h> void strupp(char* beg) { while (*beg++ = toupper(

.upper not working in python

孤街浪徒 提交于 2019-12-13 11:21:23
问题 I currently have this code num_lines = int(input()) lines = [] tempy = '' ctr = 1 abc = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z' } for i in range(0, num_lines): tempy = input() lines.append([]) lines[i].append(tempy) for o in range(0, num_lines): for p in range(0, len(lines[o])): for u in range(0, len(lines[o][p])): if lines[o][p][u] in abc: lines = str(lines) if ctr % 2 == 0: print(lines[o][p][u]) lines[o][p][u].upper() else:

tolower() and toupper() aren't working [closed]

旧巷老猫 提交于 2019-12-13 09:45:17
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . My code is here: char* kropecka(char* tab) { int a=0,b=0; char* zwr; zwr=(char*)malloc(30*sizeof(char)); for(a;strlen(tab);a++) { if(tab[a]!='.') { if(isupper(tab[a])) zwr[b]=tolower(tab[a]); if(islower(tab[a]))

Convert string to Upper and Lower case Turbo Prolog

早过忘川 提交于 2019-12-13 05:22:11
问题 How do I convert a string to Upper and to Lower case in Turbo Prolog. string_upper and string_lower function is for SWI Prolog, I found something like, tolower([], []). tolower([Upper|UpperTail], [Lower|LowerTail]) :- char_type(Lower, to_lower(Upper)), tolower(UpperTail, LowerTail). But didn't get what exactly it is. Can anyone help me solve this. 回答1: I did it using upper_lower(), write("Enter string to convert\n"), readln(Str1), upper_lower(Str1,Low), write("In lower case "), write(Low),nl,

Converting a lowercase char in a char array to an uppercase char (java)

对着背影说爱祢 提交于 2019-12-12 18:06:01
问题 Hello I am trying to write a little segment of code that checks if each char in a char array is lower case or uppercase. Right now it uses the char's ASCII number to check. After it checks it should convert the char to upper case if it is not already so: for (int counter = 0; counter < charmessage.length; counter++) { if (91 - charmessage[counter] <= 0 && 160 - charmessage[counter] != 0) { charmessage[counter] = charmessage[counter].toUpperCase(); } } charmessage is already initialized

Can CSS uppercase the text shown for the title atribute?

一个人想着一个人 提交于 2019-12-12 10:53:38
问题 Let’s say we have: <a id="link" href="#" title="i am the title">link</a> Is there a way to use CSS to uppercase the "i am the title" text that will be shown on mouse hover by default? 回答1: Not that I'm aware of. You can select an element by its attribute(s), but not select an attribute itself. A little bit of JavaScript can do it, however... var elem = document.getElementById('link'); elem.title = elem.title.toUpperCase(); jsFiddle. 回答2: No - title like tooltips are browser dependant, CSS can

How do I make text-transform:uppercase work properly with Greek?

徘徊边缘 提交于 2019-12-12 09:33:44
问题 The issue I came across has to do with the capitalization of Greek characters by the text-transform: uppercase property. In Greek, vowels can have acute accents, both small and caps, for instance one in Greek is ένα . In the beginning of a sentence would be Ένα . But when a word or a phrase is written in all caps then Greek grammar says that it should have no accented letters . As it is now, CSS's text-transform: uppercase capitalizes Greek letters preserving accents which is grammatically