InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
TxtImpUtils Class Reference

#include <TxtImpUtils.h>

Static Public Member Functions

static ITxtImpFileReaderQueryTxtImpFileReader (ITxtImpFileReader::Encoding encoding)
 
static ITxtImpFileReader::Encoding DetectJapaneseEncodingType (uchar *buf, int32 bufSize)
 

Detailed Description

TxtImpUtils Implements various utility functions that help in the process of importing text files, as featured in the TextImportFilter.

Member Function Documentation

ITxtImpFileReader::Encoding TxtImpUtils::DetectJapaneseEncodingType (uchar * buf,
int32 bufSize 
)
static

Detects the encoding type from the a uchar buf.

Parameters
bufA uchar array that contains characters in some Japanese encoding.
bufSizeNumber of bytes in the uchar array.
Returns
ITxtImpFileReader::Encoding. If not recognized, it will return Invalid.
ITxtImpFileReader * TxtImpUtils::QueryTxtImpFileReader (ITxtImpFileReader::Encoding encoding)
static

Obtains the actual ITxtImpFileReader interface for the corresponding encoding.

Parameters
encodingThe encoding for which you want the ITxtImpFileReader implementation. See ITxtImpFileReader::Encoding.