- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages
- Examples

# fastformat/internal/string_encoding.h

Go to the documentation of this file.

    00001 /* /////////////////////////////////////////////////////////////////////////
    00002  * File:        fastformat/internal/string_encoding.h
    00003  *
    00004  * Purpose:     Utilities to assist with implementation as multibyte or
    00005  *              wide string
    00006  *
    00007  * Created:     12th September 2008
    00008  * Updated:     7th March 2010
    00009  *
    00010  * Home:        http://www.fastformat.org/
    00011  *
    00012  * Copyright (c) 2008-2010, Matthew Wilson and Synesis Software
    00013  * All rights reserved.
    00014  *
    00015  * Redistribution and use in source and binary forms, with or without
    00016  * modification, are permitted provided that the following conditions are
    00017  * met:
    00018  *
    00019  * - Redistributions of source code must retain the above copyright notice,
    00020  *   this list of conditions and the following disclaimer.
    00021  * - Redistributions in binary form must reproduce the above copyright
    00022  *   notice, this list of conditions and the following disclaimer in the
    00023  *   documentation and/or other materials provided with the distribution.
    00024  * - Neither the names of Matthew Wilson and Synesis Software nor the names
    00025  *   of any contributors may be used to endorse or promote products derived
    00026  *   from this software without specific prior written permission.
    00027  *
    00028  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
    00029  * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
    00030  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    00031  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
    00032  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
    00033  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
    00034  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
    00035  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
    00036  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
    00037  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    00038  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    00039  *
    00040  * ////////////////////////////////////////////////////////////////////// */
    00041
    00042
    00049 #ifndef FASTFORMAT_INCL_FASTFORMAT_INTERNAL_H_STRING_ENCODING
    00050 #define FASTFORMAT_INCL_FASTFORMAT_INTERNAL_H_STRING_ENCODING
    00051
    00052 /* /////////////////////////////////////////////////////////////////////////
    00053  * Includes
    00054  */
    00055
    00056 #include <fastformat/fastformat.h>
    00057
    00058 /* /////////////////////////////////////////////////////////////////////////
    00059  * Macros
    00060  */
    00061
    00081 #ifdef FASTFORMAT_USE_WIDE_STRINGS
    00082 # define FASTFORMAT_LITERAL_STRING(s)       L ## s
    00083 # define FASTFORMAT_LITERAL_CHARACTER(c)    L ## c
    00084 #else /* ? FASTFORMAT_USE_WIDE_STRINGS */
    00085 # define FASTFORMAT_LITERAL_STRING(s)       s
    00086 # define FASTFORMAT_LITERAL_CHARACTER(c)    c
    00087 #endif /* FASTFORMAT_USE_WIDE_STRINGS */
    00088
    00089 /* /////////////////////////////////////////////////////////////////////////
    00090  * Inclusion
    00091  */
    00092
    00093 #ifdef STLSOFT_PPF_pragma_once_SUPPORT
    00094 # pragma once
    00095 #endif /* STLSOFT_PPF_pragma_once_SUPPORT */
    00096
    00097 /* ////////////////////////////////////////////////////////////////////// */
    00098
    00099 #endif /* FASTFORMAT_INCL_FASTFORMAT_INTERNAL_H_STRING_ENCODING */
    00100
    00101 /* ///////////////////////////// end of file //////////////////////////// */

FastFormat Library documentation © Matthew Wilson, 2006-2009 |