2 ms·
Bad example. If you want to embed that string in your code you have to type those 6 characters anyways. A better example is if you want to find a newline in a
by Avernar 10y ago
Bad example. If you want to embed that string in your code you have to type those 6 characters anyways.
A better example is if you want to find a newline in a string. If you do a find it in a UTF-16 string it may be position 8 and a find in UTF-8 may be position 12. Does it matter what the actual number is? NO. You just pass it to the next function or whatever.