uppercase

How can I force input to uppercase in an asp.net textbox?

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 a...

Upper vs Lower Case

When doing case-insensitive comparisons, is it more efficient to convert the string to upper case or lower case? Does it even matter? It is suggested in this SO post that C# is more efficient with ToUpper because "Microsoft optimized it that way." But I've also read this argument that converting ToLower vs. ToUpper depends on what you...

How do you set strings to uppercase / lowercase in Unicode?

This is mostly a theoretical question I'm just very curious about. (I'm not trying to do this by coding it myself or anything, I'm not reinventing wheels.) My question is how the uppercase/lowercase table of equivalence works for Unicode. For example, if I had to do this in ASCII, I'd take a character, and if it falls withing the [a-z]...

SQL changing a value to upper or lower case

How do you make a field in a sql select statement all upper or lower case? Example: select firstname from Person How do I make firstname always return upper case and likewise always return lower case? ...

WinForms/WebForms controls' default case musings

Why does the WinForms default name for controls start with lowercase, but is uppercase for WebForms? What's the likely rationale for this? ...

XSLT 2.0, replace function: How to replace matched group with upper case?

Hello, If have a following element in my XSL file: <xsl:value-of select="replace(lower-case(@name), '_([a-z0-9])', '$1')" /> For example from 'get_polygene_lubricants' it makes 'getpolygenelubricants'. What I want to do is to replace the first letter after '_' with the uppercase variant of the letter. I googled, read documentation, ...

Unicode lowercase characters?

I read up someplace, that there are characters other than A-Z that have a lowercase equivalent, in Unicode. Which could these be, and why would any other character need an upper and lower case? ...

How to make a part of log4net message uppercase

Hello, I'm using AdoNetAppender to log messages. I've added %property{log4net:HostName} conversion pattern to the message parameter. <parameter> <parameterName value="@message"/> <dbType value="String"/> <size value="4000"/> <layout type="log4net.Layout.PatternLayout"> <conversionPattern value="[%propert...

Rule of thumb for capitalizing the letters in a programming language

I was wondering if anyone knew why some programming languages that I see most frequently spelled in all caps (like an acronym), are also commonly written in lower case. FORTRAN, LISP, and COBOL come to mind but I'm sure there are many more. Perhaps there isn't any reason for this, but I'm curious to know if any of these changes are d...

XSLT Stylesheet: Changing text to upper case

I am using an XSLT stylesheet to create an Excel document from an XML file. One of the values that I am pulling in I want to display as upper case. How is this possible? ...

XSLT/XPath : No upper-case function in MSXML 4.0 ?

I try to use upper-case() in an XPATH, my parser is MSXML 4.0, and I get : upper-case is not a valid XSLT or XPath function. Is it really not implemented ? ...

wxPython TextCtrl transform to UPPERCASE

I was looking for a way to transform text entered into the textctrl field to uppercase. I tried using a validator and transforming the value of the key event object to the uppercase letter char value using 'ord' however I could not find any 'set' methods. I may be able to access the event class variable directly as class variables in p...

Oracle SQLDeveloper Autocomplete in Lowercase (How about Uppercase)

I am currently using the latest Oracle sql developer. I just have one nuisance here. When I do auto-complete of table names or columns, they show up in lower case. As most people I do have coding guidelines in SQL statements and I usually want table names, column names, and any other identifiers in all capitals. I tried to check the se...

Problem with upper-case and lower-case xpath functions in selenium IDE

Hi, I am trying to get a xpath query using the xpath function lower-case or uppper-case, but they seem to not work in selenium (where I test my xpath before I apply it). Example that does NOT work: //*[.=upper-case('some text')] I have no problem locating the nodes I need in complex path and even using aggregated functions, as long as ...

Check if at least 75% of a string is UPPERCASE

Hi, I'm writing bug tracking software in PHP, and today I saw this in another bug tracker: http://bugs.php.net/bug.php?id=12017 Now I want to add a feature in my software which will block titles where at least 75% of all characters is uppercase. How can I do this? Thanks, P.S. CSS will not work, because, for example if you have the w...

Does system.Decimal use more memory than 'decimal'?

I heard someone say that in C#, capital Decimal is using more memory than lower case decimal, because Decimal is resolved to the lowercase decimal and that requires memory. Is that true? ...

Turkish case conversion in JavaScript

I want to convert strings to lower or upper case in JavaScript in the locale I wanted. I think standard functions like toUpperCase() and toLocaleUpperCase() do not satisfy this need. toLocale functions do not behave as they should. For example in Safari 4, Chrome 4 Beta, Firefox 3.5.x on my system it converts strings with Turkish charact...

PHP uppercase to lowercase rewrite optimization?

I am using this PHP code to redirect any form of UPPERCASE in URI's to lowercase. There are three exceptions: if the URI includes either "adminpanel" or "search" there is no redirect, also if it already is lowercase there is no redirect Do you see any way to improve the function in PHP? $trailed = $_SERVER['REQUEST_URI']; $pos1 = strpo...

I need a function to convert lower case to upper case in Java

Hi, I'd like to know how to convert to upper case the input from the keyboard either if they are letters or numbers (only). I'm learning to program and I'd like to do it in the Java language. I have to remove the accents if the input has it and convert the input in the upper case letter. I have an idea of this but I'd really appreciat...

iPhone Force Textbox Input to Upper Case

How do I force characters input into a textbox on the iPhone to upper case? ...