• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • sources
  • kde-4.14
  • kdelibs
  • kdecore
  • localization
Macros | Enumerations | Functions
kencodingdetector.cpp File Reference
#include "kencodingdetector.h"
#include <assert.h>
#include "guess_ja_p.h"
#include <QRegExp>
#include <QTextCodec>
#include <kglobal.h>
#include <kcharsets.h>
#include <kdebug.h>
#include <klocale.h>
#include <ctype.h>
Include dependency graph for kencodingdetector.cpp:

Go to the source code of this file.

Macros

#define MAX_BUFFER   16*1024
 

Enumerations

enum  MIB {
  MibLatin1 = 4, Mib8859_8 = 85, MibUtf8 = 106, MibUcs2 = 1000,
  MibUtf16 = 1015, MibUtf16BE = 1013, MibUtf16LE = 1014
}
 

Functions

static QByteArray automaticDetectionForArabic (const unsigned char *ptr, int size)
 
static QByteArray automaticDetectionForBaltic (const unsigned char *ptr, int size)
 
static QByteArray automaticDetectionForCentralEuropean (const unsigned char *ptr, int size)
 
static QByteArray automaticDetectionForCyrillic (const unsigned char *ptr, int size)
 
static QByteArray automaticDetectionForGreek (const unsigned char *ptr, int size)
 
static QByteArray automaticDetectionForHebrew (const unsigned char *ptr, int size)
 
static QByteArray automaticDetectionForJapanese (const unsigned char *ptr, int size)
 
static QByteArray automaticDetectionForTurkish (const unsigned char *ptr, int size)
 
static QByteArray automaticDetectionForWesternEuropean (const unsigned char *ptr, int size)
 
static int findXMLEncoding (const QByteArray &str, int &encodingLength)
 
static bool is16Bit (QTextCodec *codec)
 
static void skipComment (const char *&ptr, const char *pEnd)
 

Macro Definition Documentation

#define MAX_BUFFER   16*1024

Definition at line 33 of file kencodingdetector.cpp.

Enumeration Type Documentation

enum MIB
Enumerator
MibLatin1 
Mib8859_8 
MibUtf8 
MibUcs2 
MibUtf16 
MibUtf16BE 
MibUtf16LE 

Definition at line 49 of file kencodingdetector.cpp.

Function Documentation

static QByteArray automaticDetectionForArabic ( const unsigned char *  ptr,
int  size 
)
static

Definition at line 134 of file kencodingdetector.cpp.

static QByteArray automaticDetectionForBaltic ( const unsigned char *  ptr,
int  size 
)
static

Definition at line 148 of file kencodingdetector.cpp.

static QByteArray automaticDetectionForCentralEuropean ( const unsigned char *  ptr,
int  size 
)
static

Definition at line 161 of file kencodingdetector.cpp.

static QByteArray automaticDetectionForCyrillic ( const unsigned char *  ptr,
int  size 
)
static

Definition at line 193 of file kencodingdetector.cpp.

static QByteArray automaticDetectionForGreek ( const unsigned char *  ptr,
int  size 
)
static

Definition at line 389 of file kencodingdetector.cpp.

static QByteArray automaticDetectionForHebrew ( const unsigned char *  ptr,
int  size 
)
static

Definition at line 402 of file kencodingdetector.cpp.

static QByteArray automaticDetectionForJapanese ( const unsigned char *  ptr,
int  size 
)
static

Definition at line 418 of file kencodingdetector.cpp.

static QByteArray automaticDetectionForTurkish ( const unsigned char *  ptr,
int  size 
)
static

Definition at line 438 of file kencodingdetector.cpp.

static QByteArray automaticDetectionForWesternEuropean ( const unsigned char *  ptr,
int  size 
)
static

Definition at line 449 of file kencodingdetector.cpp.

static int findXMLEncoding ( const QByteArray &  str,
int &  encodingLength 
)
static

Definition at line 512 of file kencodingdetector.cpp.

static bool is16Bit ( QTextCodec *  codec)
static

Definition at line 60 of file kencodingdetector.cpp.

static void skipComment ( const char *&  ptr,
const char *  pEnd 
)
static

Definition at line 478 of file kencodingdetector.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal