views:

76

answers:

3

I would like to get a list of the VB.net/C# "wide" functions for unicode - i.e. AscW, ChrW, MessageBoxW, etc.

Is there a list of these somewhere?

+5  A: 

All string methods in .NET are Unicode by default. .NET uses unicode strings for all String methods, since System.String is Unicode.

From System.String's Documentation:

Represents text as a series of Unicode characters.

Any time you call any method that takes a String as a parameter, you're working in Unicode. There is no need for "wide character" versions of methods in .NET.


In fact, if you want to work with ANSI text, you need to explicitly tell the framework that is what you are doing.

This is often used via a method from the Marhsal class (for interop with other libraries), or via the Encoding class (Encoding.ASCII, or a different character encoding) to convert a series of bytes to or from text.

Reed Copsey
+1, a better question is "where are the ASCII string functions?" :)
Joel Coehoorn
Good point. I'll add some info.
Reed Copsey
+1  A: 

All .net strings are Unicode already. There are no Ascii strings to worry about. So they dropped the W from the Win32 names.

Steve Gilham
A: 

Strings in .net are all Unicode. You don't need specific functions to handle Unicode because it's built in already.

Scott M.