R
Rico
If there are consecutive occurrences of characters from the given
delimiter, String.Split() and Regex.Split() produce an empty string as the
token that's between such consecutive occurrences. It sounds like making
sense, but has anyone ever found this useful? Can this 'feature' be
disabled?
After having used StringTokenizer from the J-language that's not to be
named, it's annoyed me for hours before I figured out that it was just a
matter of modifying our own Split method to ignore tokens returned when
some startIndex is the same as some current pointer.
Now... I went through the trouble of using NHibernate to get rid of SQL
strings.. only to find myself rolling my own Tokenizer... it feels weird.
Rico.
delimiter, String.Split() and Regex.Split() produce an empty string as the
token that's between such consecutive occurrences. It sounds like making
sense, but has anyone ever found this useful? Can this 'feature' be
disabled?
After having used StringTokenizer from the J-language that's not to be
named, it's annoyed me for hours before I figured out that it was just a
matter of modifying our own Split method to ignore tokens returned when
some startIndex is the same as some current pointer.
Now... I went through the trouble of using NHibernate to get rid of SQL
strings.. only to find myself rolling my own Tokenizer... it feels weird.
Rico.