/usr/include/scribus/scclocale.h is in scribus-dev 1.4.6+dfsg-2.
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 | //
// C++ Interface: sclocale
//
// Description:
//
//
// Author: Pierre Marchand <pierremarc@oep-h.com>, (C) 2009
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef SCCLOCALE_H
#define SCCLOCALE_H
#include <QLocale>
#include <QString>
#include <clocale>
#if defined(Q_OS_MAC)
#include <xlocale.h>
#endif
#if defined(Q_OS_SOLARIS) || defined (Q_OS_OPENBSD) || defined (Q_OS_FREEBSD) || defined (Q_OS_HAIKU)
#include <locale.h>
#endif
#if defined(Q_WS_WIN)
#define XLocaleType _locale_t
#else
#if defined (Q_OS_SOLARIS) || defined (Q_OS_OPENBSD) || defined (Q_OS_FREEBSD) || defined (Q_OS_HAIKU)
#define XLocaleType char* //dummy?
#else
#define XLocaleType locale_t
#endif
#endif
#include "scribusapi.h"
class SCRIBUS_API ScCLocale
{
ScCLocale();
~ScCLocale();
QLocale qLocale;
XLocaleType cLocale;
static ScCLocale * m_instance;
static ScCLocale * that();
public:
static double toDoubleC(const QString& str, bool * ok = 0);
static double toDoubleC(const QString& str, double defValue);
static float toFloatC(const QString& str, bool * ok = 0);
static float toFloatC(const QString& str, float defValue);
static QString toQStringC(double d, int prec = 3);
static double strtod ( const char * str, char ** endptr );
};
#endif // SCCLOCALE_H
|