Case insensitive 'sed' and 'tr'? Programming Software Development by NonProgrammer … part. The part Im stuck with is making it case insensitive. 1. so that case doesnt matter to the trasformation; and… Case insensitive highlighting Programming Software Development by bigbadowl … large documents. Problem is: 1. It needs to be case insensitive, ie: "dog" or "Dog" should match… Re: Case insensitive highlighting Programming Software Development by Narue … options. Here are a few: [LIST] [*]Create your own case insensitive traits class and apply that to your strings. [*]Convert all… Re: Case insensitive highlighting Programming Software Development by Narue … function. No, anywhere you use an object that uses the insensitive traits, you're stuck with it throughout the life of… Case Insensitive Search - XPATH Programming Software Development by Mapper99 I can't seem to get a case insensitive search to work using an XPATH query. This code works: $… case insensitive attribute name and value Programming Software Development by phoenix.zhp …;value". I know I can select element with case insensitive using translate function like "//*[translate(name(), 'abc','ABC')='ABC… Strings: Case Insensitive strstr Programming Software Development by Dave Sinkula How might I write an implementation in C a case-insensitive version of the standard library function [inlinecode]strstr[/inlinecode]? Here's how I might. [url=http://www.daniweb.com/code/showsnippet.php?codeid=314]But I need it to be case-sensitive[/url]? Strings: Comparing, Case-Insensitive Programming Software Development by Dave Sinkula … might I write an implementation in C of a case-insensitive version of the standard library function [inlinecode]strcmp[/inlinecode]? Here… Case-insensitive Username Changing Community Center Meta DaniWeb by Assembly Guy … username is already taken. I understand that it's case insensitive so that someone can't call themself 'dani' (all lowercase… Re: Case-insensitive Username Changing Community Center Meta DaniWeb by Ketsuekiame Can you change it to something that isn't your name and then back to your name? But yeah, I agree, a simple logic gate that checks if your old username matches your new username (at a case insensitive level) hopefully wouldn't stress the development resource too much :) What you opined about HTML either it is Case Sensitive or Case Insensitive? Digital Media by webguru_1 What you opined about HTML either it is Case Sensitive or Case Insensitive? Re: What you opined about HTML either it is Case Sensitive or Case Insensitive? Digital Media by pty HTML, as stated in the standard, is case-insensitive. XHTML, like all XML, is case sensitive. Re: case insensitive search in AES encrypted column? Programming Databases by calibi.yau … automatically be case sensitive. Converting from binary to a case insensitive type should solve my problem... but it's still not… Re: Case insensitive 'sed' and 'tr'? Programming Software Development by masijade What about simply running the entire string through two tr statements. The first one transforming either the the upper or lower case letters, and the second one transforming the other. That would be my first suggestion, but it would definately help to see the related snippet of code. Re: Case insensitive 'sed' and 'tr'? Programming Software Development by sn4rf3r you can use regular expressions in sed, this will replace all instances of findthis with replacement [code] sed -e 's/[fFiInNdDtThHiIsS]/replacement/g' [/code] give an example of a string you are looking for and we can give you an example regex to use. Re: Case insensitive 'sed' and 'tr'? Programming Software Development by masijade Except for the fact that he said he wants to keep the original case, which that regex would not allow. I am assuming he is doing some sort of alphabet shift to quasi encode or scramble a string (at least that is what it sounds like to me since he wishes to keep the same capitalisation pattern). Re: Case insensitive 'sed' and 'tr'? Programming Software Development by sn4rf3r my bad, missed that part.... like masijade said, i think a code sample or problem text is needed to clarify. Re: Case insensitive highlighting Programming Software Development by bigbadowl Thanks for that I have seen traits and looked at this code [ICODE]class ichar_traits : public std::char_traits<char> { public: static bool eq(char, char); static bool lt(char, char); static int compare(const char *, const char *, size_t n); static const char * find(const char *, size_t n, char); };[/ICODE] Is there any way to … Re: Case insensitive highlighting Programming Software Development by bigbadowl Hi again I now know what you meant by predicate and have found some code. This looks like the answer for me. Trouble is it requires a const string and I need to use a string pointer (string *source) Any ideas? [ICODE] bool ci_equal(char ch1, char ch2){ return toupper((unsigned char)ch1) == toupper((unsigned char)ch2); } size_t … Re: Case insensitive highlighting Programming Software Development by ivailosp [CODE=CPP] #include <string> #include <iostream> using namespace std; bool lol(string& x, string& y) { if (x.size() != y.size()) return false; for (size_t i = 0; i < x.size(); ++i) { if (x[i] == y[i] || x[i]+32 == y[i] || x[i] == y[i]+32) continue; else return false; } return true; } int main(int argc, char … Re: case insensitive attribute name and value Programming Software Development by xml_looser Hello to XML user xml for testing <?xml version="1.0"?> <root> <element attr='Abc'/> <element Attr='ABc'/> <element ATtr='abC'/> <element attr='ABC'/> <element attr='AbC'/> <element class='AbC'/> </root> <?xml version='1.0'?> &… Re: case insensitive attribute name and value Programming Software Development by phoenix.zhp on my, thank you very much! you are so kindhearted! Re: Strings: Case Insensitive strstr Programming Software Development by c_coder Mr Dave...You have posted very neat C programs..Thanks a bunch...Even though i knew how to solve most of them it was nice to learn a much better way of solving them...It has been of a big help... c_coder Re: Case-insensitive Username Changing Community Center Meta DaniWeb by Ancient Dragon >Can you change it to something that isn't your name and then back to your name? I don't think so -- as I recall we only get one crack at changing the user name. Re: Case-insensitive Username Changing Community Center Meta DaniWeb by Assembly Guy Ancient Dragon's right, you can only change it once. Re: Case-insensitive Username Changing Community Center Meta DaniWeb by stultuske you could always make a second user. the first you re-name, the second time you register with the 'right' capitalization, and just have a link to your other account in signature, but that might go against the rules (maybe only one account is allowed?) and is also a bit far-fetched IMHO. a name with an aberrant capitalization 'jumps to sight', and … Re: Case-insensitive Username Changing Community Center Meta DaniWeb by Dani Sorry, I didn't see this thread until now for some reason. Bug fixed :) Re: Case-insensitive Username Changing Community Center Meta DaniWeb by Assembly Guy Hooray, I'm normal! C program help Programming Software Development by Draculaboy1014 …whether two strings are the same // being case insensitive. // return 0, when there is NO …, when there is a difference between the two letters case insensitive. // // Parameters: // str1 = first string to compare. …, when there is a difference between the two letters case insensitive. // // Parameters: // letter1 = first character to compare. … "End Now" error when running C program Programming Software Development by Draculaboy1014 …whether two strings are the same // being case insensitive. // return 0, when there is NO …, when there is a difference between the two letters case insensitive. // // Parameters: // str1 = first string to compare. …, when there is a difference between the two letters case insensitive. // // Parameters: // letter1 = first character to compare. …