case-sensitive

Git on Windows: “merging” 2 directories with the same name but different case

心已入冬 提交于 2019-12-06 04:31:34
The word "merge" does not refer to a git merge, but just moving all the files to the same directory. We somehow came to have two directories with the same name but different cases in our git repository. Windows is case-insensetive in this respect so it works fine just checking out all the files from both directories into one directory on disk. Still would like to get rid of this "duality" Is there a way to fix this using Windows git clients? I've tried git mv, but it appears to be case insensetive. I expected it to move only the files that are under the lowercase version of the directory but

UISearch bar case insensitive?

我的梦境 提交于 2019-12-06 03:17:47
问题 In a table view I have set a UISearchBar, set the delegate, and add the protocol. When user tap a word everything is okay except that the search of "tennis" is different from "Tennis". How can I make the search bar a case-insensitive UISearchBar? Here is my code where I think evrything happens: - (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText { [tableData removeAllObjects];// remove all data that belongs to previous search if([searchText isEqualToString:@""]|

How to disable case-sensitivity for filename auto-completion in Emacs 24 shell-mode?

陌路散爱 提交于 2019-12-06 01:55:17
On upgrading from Emacs 23 to Emacs 24, filename completion suddenly became case sensitive in shell-mode . I had customized Emacs 23 to be case insensitive in this case but I forget the exact customizations now. Going over my .emacs file, I see that read-file-name-completion-ignore-case is set to non-nil. However, that seems to have no effect in Emacs 24's shell-mode . So it turns out that shell-mode in Emacs 24 uses pcomplete by default . pcomplete was always the default for eshell but Emacs 24 has made it so for shell too. pcomplete-ignore-case controls case sensitivity for pcomplete . I got

How to make “git branch” respect the “core.ignorecase” flag on Linux?

冷暖自知 提交于 2019-12-05 20:27:03
问题 We are using a remote Git repository located on a Linux server at the office. All clients are Windows PCs with Git Extensions installed as a client (running with msysgit). On a client system, if I try to do the following: git branch Branch1 git branch branch1 the second command is going to fail, telling me that a branch with that name already exists. That is what I expect, since I set the core.ignorecase to true in git config . But, if I log onto the Linux system directly and run the same

MySQL search with uft8_general_ci is case sensitive for FULLTEXT?

℡╲_俬逩灬. 提交于 2019-12-05 19:00:54
I set up a MyISAM table to do FULLTEXT searching. I do not want searches to be case-sensitive. My searches are along the lines of: SELECT * FROM search WHERE MATCH (keywords) AGAINST ('+diversity +kitten' IN BOOLEAN MODE); Let's say the keywords field I'm looking for has the value "my Diversity kitten". I noticed the searches were case-sensitive. I double-checked my collation on the search table, it was set to utf8_bin . D'oh! I changed it to utf8_general_ci . But my query is still case-sensitive! Why? Is there a server setting I need to change, too? Is there something I need to do besides

Difference of stricmp and _stricmp in Visual Studio?

允我心安 提交于 2019-12-05 16:23:44
问题 I may asking a stupid question, but I really can't find an answer with google plus I am still a beginner of using MSVS. I recently need to use functions to make comparison of two strings. What I don't understand is the difference of stricmp and _stricmp. They both can be used to compare strings and return the same results. I went to check them: char string1[] = "The quick brown dog jumps over the lazy fox"; char string2[] = "The QUICK brown dog jumps over the lazy fox"; void main( void ) {

Are there issues using Dim foo As Foo in VB.NET?

做~自己de王妃 提交于 2019-12-05 14:34:54
In a recent VB.NET project I adopted the naming conventions I'm used to using in C#. Namely, often calling a variable the same name as the class it references, only with a different case, e.g. Foo foo = new Foo(); // C# Dim foo As New Foo() ' VB.NET I find this is often the clearest way to write code, especially for small methods. This coding style obviously works fine in C#, being case sensitive, and because of the syntax highlighting provided by Visual Studio, it is very easy to see that the class name and the variable name are different. However, to my surprise, this also worked fine nearly

HTML image src case sensitivity

冷暖自知 提交于 2019-12-05 13:57:29
I have image folder names in caps. But the src is in lowercase, so this is not loading images. I can't make all the image folders lowercase, so I want to change my code to take a case insensitive path. I have a link like this: <a href="http://www.google.com"> <img id="productMainImage" src="images/Tulips.jpg" alt="image" escapeXml="false" class="product_main_image"/> </a> I want to make the image src as case insensitive; meaning I want my code to work even if src ="IMAGES/Tulips.jpg" . How to resolve this issue? Either you can use JS to do this using toLowerCase() , or you need to rename them

Using Perl on Windows, how can I ensure I get the path in the correct case following a chdir?

℡╲_俬逩灬. 提交于 2019-12-05 12:03:56
Consider the following code: print cwd . "\n"; $str= "../source"; # note the lower case 's' chdir($str); print cwd . "\n"; If my current directory is c:\parentdir\Source (note the capital 'S'), the output of this will be: c:/parentdir/Source c:/parentdir/source This causes problems in a subroutine of mine that cares about the correct case of folder names. $str is passed in to my subroutine, so I can't know ahead of time whether it has the correct case. How do I determine the case-correct name of a path that matches $str ? More detail here: I realize that ../source is a pathological example,

Is the “Contains” Delphi string helper case sensitive?

北城以北 提交于 2019-12-05 11:58:41
Delphi XE3 introduced a Contains string helper function, but the help-file/ wiki does not state whether it is case sensitive or not? Yes it is case sensitive. Quick test: ShowMessage('TEST'.Contains('t').ToString(TUseBoolStrs.True)); returns False Use ToLowerInvariant or ToUpperInvariant to compare case insensitive: ShowMessage('TEST'.ToLowerInvariant.Contains('t').ToString(TUseBoolStrs.True)); 来源: https://stackoverflow.com/questions/30180634/is-the-contains-delphi-string-helper-case-sensitive