/usr/include/paragui/ychar.h is in libparagui1.1-dev 1.1.8-3.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | /************************************************************************
* $Id: ychar.h,v 1.1.2.2 2004/09/05 10:51:41 braindead Exp $
*
* ------------
* Description:
* ------------
* ychar.h
*
* A unicode lightweight character class
*
* (C) Copyright 2004 Arabeyes, Mohammed Yousif
*
* -----------------
* Revision Details: (Updated by Revision Control System)
* -----------------
* $Date: 2004/09/05 10:51:41 $
* $Author: braindead $
* $Revision: 1.1.2.2 $
* $Source: /cvsroot/paragui/paragui/include/Attic/ychar.h,v $
*
* (www.arabeyes.org - under GPL License)
*
************************************************************************/
#ifndef YCHAR_H
#define YCHAR_H
#ifdef WIN32
#pragma warning(disable : 4290)
#endif
#include <stdexcept>
#include <string>
typedef unsigned int uint32;
typedef unsigned char byte;
class DECLSPEC YChar {
public:
YChar();
YChar(const uint32);
YChar(const int);
YChar(const char);
YChar(const char *) throw(std::domain_error);
YChar(const std::string) throw(std::domain_error);
YChar lower() const;
YChar upper() const;
YChar title() const;
int digitValue() const throw(std::domain_error);
int hexDigitValue() const throw(std::domain_error);
bool isNull() const;
bool isAsciiLetter() const;
int bytes() const;
std::string utf8() const;
static int getNumberOfContinuingOctents(byte) throw(std::domain_error);
static YChar fromUtf8(const char *) throw(std::domain_error);
static YChar fromUtf8(const std::string) throw(std::domain_error);
//operator char();
operator uint32();
friend bool operator==(const YChar &, const YChar &);
friend bool operator==(const YChar &, const char &);
friend bool operator==(const char &, const YChar &);
friend bool operator==(const YChar &, const int &);
friend bool operator==(const int &, const YChar &);
friend std::ostream & operator<<( std::ostream &, YChar);
private:
uint32 ucs4;
};
bool operator==(const YChar &, const YChar &);
bool operator==(const YChar &, const char &);
bool operator==(const char &, const YChar &);
bool operator==(const YChar &, const int &);
bool operator==(const int &, const YChar &);
std::ostream & operator<<( std::ostream &, YChar);
std::istream & operator>>( std::istream &, YChar &);
#endif /* YCHAR_H */
|