Thread: Wide char support/STL.

  1. #1
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Waterloo, Texas

    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.

    (The tokens are internally stored as an std::multimap<int, string>.)
    Last edited by Sebastiani; 09-22-2003 at 12:09 PM.
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
        return std::pow
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;

  2. #2
    Join Date
    Sep 2003
    >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
Website Security Test