About 13,800,000 results
Open links in new tab
  1. How do I compare strings in Java? - Stack Overflow

    Apr 2, 2013 · String Literals: Moreover, a string literal always refers to the same instance of class String. This is because string literals - or, more generally, strings that are the values of …

  2. What is the difference between String and string in C#?

    Aug 10, 2008 · String stands for System.String and it is a .NET Framework type. string is an alias in the C# language for System.String. Both of them are compiled to System.String in IL …

  3. How can you encode/decode a string to Base64 in JavaScript?

    btoa() accepts a “string” where each character represents an 8-bit byte – if you pass a string containing characters that can’t be represented in 8 bits, it will probably break. This isn’t a …

  4. c# - FromBody string parameter is giving null - Stack Overflow

    Nov 29, 2016 · This is probably something very basic, but I am having trouble figuring out where I am going wrong. I am trying to grab a string from the body of a POST, but "jsonString" only …

  5. How to fix "SyntaxWarning: invalid escape sequence" in Python?

    It's important to remember that a string literal is still a string literal even if that string is intended to be used as a regular expression. Python's regular expression syntax supports many special …

  6. What are the differences between Rust's `String` and `str`?

    In summary, use String if you need owned string data (like passing strings to other threads, or building them at runtime), and use &str if you only need a view of a string. This is identical to …

  7. c# - Why would you use String.Equals over ==? - Stack Overflow

    Nov 2, 2009 · I recently was introduced to a large codebase and noticed all string comparisons are done using String.Equals() instead of == What's the reason for this, do you think?

  8. .net - Remove characters from C# string - Stack Overflow

    Sep 14, 2011 · A string is just a character array so use Linq to do the replace (similar to Albin above except uses a linq contains statement to do the replace): var resultString = new string(

  9. Generate a string of random characters

    I want a string of fixed length, composed of characters picked randomly from a set of characters e.g. [a-zA-Z0-9]. How can I do this with JavaScript?

  10. Differences between C++ string == and compare()? - Stack Overflow

    One thing that is not covered here is that it depends if we compare string to c string, c string to string or string to string. A major difference is that for comparing two strings size equality is …