Wide char support/STL.

This is a discussion on Wide char support/STL. within the C++ Programming forums, part of the General Programming Boards category; I have a generic lexical scanner class that I want to add wchar support for. What are some approaches that ...

  1. #1
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,699

    Wide char support/STL.

    I have a generic lexical scanner class that I want to add wchar support for. What are some approaches that may be used to seamlessly incorporate this into the object's behaviour? Also, aren't there several types of unicode that must be accounted for in order to be fully compliant?

    Thanks in advance.

    [edit]
    (The tokens are internally stored as an std::multimap<int, string>.)
    [/edit]
    Last edited by Sebastiani; 09-22-2003 at 12:09 PM.
    Code:
    bool fun(bool value)
    {
        return std::pow(std::exp(1), std::complex<float>(0, 1) 
        * std::complex<float>(std::atan(1)*(1 << (value + 2))))
        .real() > 0;
    }

  2. #2
    twm
    twm is offline
    root
    Join Date
    Sep 2003
    Posts
    232
    >What are some approaches that may be used to seamlessly incorporate this into the object's behaviour?
    Commercials don't lie, wider is better. *cough*wstring in <string>*cough* Oh, excuse me...must be coming down with something. It is getting into the cold and flu season around here you know.
    The information given in this message is known to work on FreeBSD 4.8 STABLE.
    *The above statement is false if I was too lazy to test it.*
    Please take note that I am not a technical writer, nor do I care to become one.
    If someone finds a mistake, gleaming error or typo, do me a favor...bite me.
    Don't assume that I'm ever entirely serious or entirely joking.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Conversion Char To Char * Problem
    By ltanusaputra in forum Windows Programming
    Replies: 3
    Last Post: 03-01-2008, 01:06 PM
  2. Replies: 16
    Last Post: 10-29-2006, 04:04 AM
  3. newbie needs help with code
    By compudude86 in forum C Programming
    Replies: 6
    Last Post: 07-23-2006, 08:54 PM
  4. I'm having a problem with data files.
    By OmniMirror in forum C Programming
    Replies: 4
    Last Post: 05-14-2003, 09:40 PM
  5. String sorthing, file opening and saving.
    By j0hnb in forum C Programming
    Replies: 9
    Last Post: 01-23-2003, 12:18 AM

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