If I had a goat...
-
ya know what would really get it? That (in Unicode and therefore .net) NULL-characters are allowed in strings yet aren't considered whitespace. :mad:
-
ya know what would really get it? That (in Unicode and therefore .net) NULL-characters are allowed in strings yet aren't considered whitespace. :mad:
Nuii | Keroro Wiki | FANDOM powered by Wikia[^] Why would anime characters be allowed in strings or considered whitespace? :confused:
Best, Sander Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
-
Nuii | Keroro Wiki | FANDOM powered by Wikia[^] Why would anime characters be allowed in strings or considered whitespace? :confused:
Best, Sander Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly
You rotten so and so - I followed your link and seriously though "that can't be right" I then used google and it made a lot more sense.
Never underestimate the power of human stupidity RAH
-
ya know what would really get it? That (in Unicode and therefore .net) NULL-characters are allowed in strings yet aren't considered whitespace. :mad:
A NULL character is part and parcel of a string. Otherwise you need some form of counted string,, otherwise the length is undetermined.
-
A NULL character is part and parcel of a string. Otherwise you need some form of counted string,, otherwise the length is undetermined.
The string is over when the fat lady sings.
I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
-
A NULL character is part and parcel of a string. Otherwise you need some form of counted string,, otherwise the length is undetermined.
In .Net, string is a class, and has a length variable, so can contain NULL in the middle. Just like the std::string class in C++. FWIW, I thought the Pascal style of having the length in the first char was quite neat (though that limited it to strings of < 255 characters).
-
In .Net, string is a class, and has a length variable, so can contain NULL in the middle. Just like the std::string class in C++. FWIW, I thought the Pascal style of having the length in the first char was quite neat (though that limited it to strings of < 255 characters).
Like the UNICODE_STRING we use in the kernel, it contains a length member and a pointer to the string data.
Orjan Westin wrote:
can contain NULL in the middle
SOunds a bit like a multi string, nulls in the middle, ,two at the end. Why would you want a null in the middle of a string though? How does it make it useful?
-
Like the UNICODE_STRING we use in the kernel, it contains a length member and a pointer to the string data.
Orjan Westin wrote:
can contain NULL in the middle
SOunds a bit like a multi string, nulls in the middle, ,two at the end. Why would you want a null in the middle of a string though? How does it make it useful?
If you have a good old VT-52, it finally gets something it can safely ignore:
Quote:
00 Null Never affects the device. codes are always ignored wherever they appear in the character stream.
I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
-
ya know what would really get it? That (in Unicode and therefore .net) NULL-characters are allowed in strings yet aren't considered whitespace. :mad:
PIEBALDconsult wrote:
aren't considered whitespace
Take it up with the Unicode consortium. NULL is defined as a control character[^], not a space character[^]. It would be rather perverse for .NET to ignore that categorisation.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
PIEBALDconsult wrote:
aren't considered whitespace
Take it up with the Unicode consortium. NULL is defined as a control character[^], not a space character[^]. It would be rather perverse for .NET to ignore that categorisation.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
I'll update my rant to blame Unicode.