"Fossies" - the Fresh Open Source Software Archive

Member "xterm-379/xutf8.h" (10 Oct 2010, 1720 Bytes) of package /linux/misc/xterm-379.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "xutf8.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * $XTermId: xutf8.h,v 1.4 2010/10/10 14:10:12 Jeremy.Huddleston Exp $
    3  */
    4 /*
    5 Copyright (c) 2001 by Juliusz Chroboczek
    6 
    7 Permission is hereby granted, free of charge, to any person obtaining a copy
    8 of this software and associated documentation files (the "Software"), to deal
    9 in the Software without restriction, including without limitation the rights
   10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   11 copies of the Software, and to permit persons to whom the Software is
   12 furnished to do so, subject to the following conditions:
   13 
   14 The above copyright notice and this permission notice shall be included in
   15 all copies or substantial portions of the Software.
   16 
   17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
   20 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   22 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   23 THE SOFTWARE.
   24 */
   25 
   26 #include <X11/Xlib.h>
   27 
   28 #ifndef X_HAVE_UTF8_STRING
   29 
   30 #undef XA_UTF8_STRING
   31 Atom _xa_utf8_string(Display*);
   32 #define XA_UTF8_STRING(dpy) _xa_utf8_string(dpy)
   33 
   34 #undef XUTF8StringStyle
   35 #define XUTF8StringStyle 4
   36 
   37 int Xutf8TextPropertyToTextList(
   38     Display *,
   39     const XTextProperty *,
   40     char ***,
   41     int *
   42 );
   43 int
   44 Xutf8TextListToTextProperty(
   45     Display *,
   46     char **,
   47     int,
   48     XICCEncodingStyle,
   49     XTextProperty *
   50 );
   51 int Xutf8LookupString(
   52     XIC,
   53     XKeyPressedEvent *,
   54     char *,
   55     int,
   56     KeySym *,
   57     Status *
   58 );
   59 #else
   60 void xutf8_dummy(void);
   61 #endif