Unicode functions.

This is a discussion on Unicode functions. within the C++ Programming forums, part of the General Programming Boards category; Right now I have Unicode and non-Unicode versions of some functions (to open files and such), should I bother keeping ...

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    97

    Unicode functions.

    Right now I have Unicode and non-Unicode versions of some functions (to open files and such), should I bother keeping both or should I just use the Unicode version? Are there any benefits for keeping both?

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    keep both

    Kuphryn

  3. #3
    Registered User
    Join Date
    Oct 2003
    Posts
    97
    It would be nice to have some reasons to keep both or not. It seems to me that it would only make sense to keep the Unicode versions that it would deal with all cases but I'm not sure how everything works in different platforms.

  4. #4
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,673
    You've just answered your own question: the reason it is good to keep ASCII and unicode functions is because not all systems support unicode, and you will have to convert unicode strings to ASCII ones.

    Also, many standard libraries have unicode versions of their utilities, but if you use a third party library (or just a really old lubrary) in your code, it might not support unicode and you would need to convert in that case also.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Is it legal to have functions within functions?
    By Programmer_P in forum C++ Programming
    Replies: 13
    Last Post: 05-25-2009, 11:21 PM
  2. Unicode - a lot of confusion...
    By Jumper in forum Windows Programming
    Replies: 11
    Last Post: 07-05-2004, 07:59 AM
  3. UNICODE and windows.h help
    By nextus in forum Windows Programming
    Replies: 3
    Last Post: 03-02-2003, 02:13 PM
  4. printing non-ASCII characters (in unicode)
    By dbaryl in forum C Programming
    Replies: 1
    Last Post: 10-25-2002, 01:00 PM
  5. UNICODE and GET_STATE
    By Registered in forum C++ Programming
    Replies: 1
    Last Post: 07-15-2002, 03:23 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21