Antenna House PDF Tool API (C++) 8.0
PtlParamString.h
1
2// PtlParamString.h
3// Copyright (C) 2013-2025 Antenna House,Inc.
4// All rights reserved.
6#ifndef PDFTK_PTLPARAMSTRING_H_
7#define PDFTK_PTLPARAMSTRING_H_
8
9#include "PdfTkBase.h"
10
11namespace PdfTk {
12
13#define NULL_VALUE_CSTR "null"
14#define NULL_VALUE_WSTR L"null"
15
16#ifdef WIN32
17 typedef unsigned short CP_UChar; // UTF-16
18#else
19 typedef unsigned int CP_UChar; // UTF-32
20#endif
21
25
26class PDFTK_API PtlParamString
27{
28private:
29 int m_dataParamString;
30public:
31 int getHandle() const;
32
33public:
39
46
51
52public:
58
59public:
65 PtlParamString(const char* lp);
66
71 PtlParamString& operator=(const char* lp);
72
77 int cstr_length() const;
78
83 const char* c_str() const;
84
92 int compare(const char* lp);
93
94public:
100 PtlParamString(const CP_UChar* wp);
101
106 PtlParamString& operator=(const CP_UChar* wp);
107
112 int wstr_length() const;
113
118 const CP_UChar* w_str() const;
119
127 int compare(const CP_UChar* wp);
128};
129
130} // namespace PdfTk
131
132#endif // PDFTK_PTLPARAMSTRING_H_
int compare(const char *lp)
charベースの文字を比較。
int compare(const CP_UChar *wp)
CP_UCharベースの文字を比較。
PtlParamString & operator=(const PtlParamString &obj)
コピーオペレータ
PtlParamString & operator=(const char *lp)
コピーオペレータ
PtlParamString(const char *lp)
コンストラクタ
int wstr_length() const
CP_UCharベースの文字長を取得。
const char * c_str() const
charベースの文字を取得。
~PtlParamString()
デストラクタ
PtlParamString(const CP_UChar *wp)
コンストラクタ
PtlParamString(const PtlParamString &obj)
コピーコンストラクタ
PtlParamString()
コンストラクタ
const CP_UChar * w_str() const
CP_UCharベースの文字を取得。
PtlParamString & operator=(const CP_UChar *wp)
コピーオペレータ
int cstr_length() const
charベースの文字長を取得。