About 12,700,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 constant expressions …

  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 (Intermediate …

  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 problem if you’re …

  4. How do I get a substring of a string in Python? - Stack Overflow

    Aug 31, 2016 · I want to get a new string from the third character to the end of the string, e.g. myString[2:end]. If omitting the second part means 'to the end', and if you omit the first part, does it …

  5. What's does the dollar sign ($"string") do? [duplicate]

    In String Interpolation, we simply prefix the string with a $ (much like we use the @ for verbatim strings). Then, we simply surround the expressions we want to interpolate with curly braces (i.e. { and }): It …

  6. 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?

  7. Split a string by a delimiter in Python - Stack Overflow

    0 When you want to split a string by a specific delimiter like: __ or | or , etc. it's much easier and faster to split using .split() method as in the top answer because Python string methods are intuitive and …

  8. Differences between C++ string == and compare ()?

    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 checked before …

  9. How can I check if a string is null or empty in PowerShell?

    Dec 6, 2012 · Is there a built-in IsNullOrEmpty -like function in order to check if a string is null or empty, in PowerShell? I could not find it so far and if there is a built-in way, I do not want to write a function …

  10. .NET Format a string with fixed spaces - Stack Overflow

    Mar 14, 2009 · Does the .NET String.Format method allow placement of a string at a fixed position within a fixed length string. " String Goes Here" " String Goes Here " "String Goes Here ...