¡@

Home 

c# Programming Glossary: lenb

String.comparison performance (with trim)

http://stackoverflow.com/questions/1862314/string-comparison-performance-with-trim

b indexB indexB int lenA a.Length indexA int lenB b.Length indexB while lenA 0 Char.IsWhiteSpace a indexA lenA.. while lenA 0 Char.IsWhiteSpace a indexA lenA 1 lenA while lenB 0 Char.IsWhiteSpace b indexB lenB 1 lenB if lenA 0 lenB 0 return.. indexA lenA 1 lenA while lenB 0 Char.IsWhiteSpace b indexB lenB 1 lenB if lenA 0 lenB 0 return 0 if lenA 0 return 1 if lenB..