strstr() function like, that ignores upper or lower case?

I have two strings. Lets say ` str1="One Two Three"; and str2="two"; I would like to know if there is any fun...

How to only make one legend name italic in base R plot??

I want to add a legend to a plot in which only one of the legend names is italicized. I'm using plot() in base R. ...

Initialize a string in C to empty string?

I want to initialize string in C to empty string. I tried: string[0] = ""; but it wrote "warning: assignment ma...

String Padding in C?

I wrote this function that's supposed to do StringPadRight("Hello", 10, "0") -> "Hello00000". char *StringPadRig...

Python - write() versus writelines() and concatenated strings?

So I'm learning Python. I am going through the lessons and ran into a problem where I had to condense a great many t...

Python - write() versus writelines() and concatenated strings?

So I'm learning Python. I am going through the lessons and ran into a problem where I had to condense a great many t...

Can we rely on String.isEmpty for checking null condition on a String in Java??

I am passing an accountid as input from an XML file as shown, which will be parsed later and will be used in our c...

How to delete all instances of a character in a string in python??

How do I delete all the instances of a character in this string? Here is my code: def findreplace(char, string): ...

String.valueOf() vs. Object.toString()?

In Java, is there any difference between String.valueOf(Object) and Object.toString()? Is there a specific code conv...

String.valueOf() vs. Object.toString()?

In Java, is there any difference between String.valueOf(Object) and Object.toString()? Is there a specific code conv...

How to compare character ignoring case in primitive types?

I am writing these lines of code: String name1 = fname.getText().toString(); String name2 = sname.getText().toStrin...

Easiest way to split a string on newlines in .NET??

I need to split a string into newlines in .NET and the only way I know of to split strings is with the Split method....

How can I get the last 7 characters of a PHP string??

How would I go about grabbing the last 7 characters of the string below? For example: $dynamicstring = "2490slkj40...

How to check if C string is empty?

I'm writing a very small program in C that needs to check if a certain string is empty. For the sake of this questio...