FineKernelToolKit 4.2.13
読み取り中…
検索中…
一致する文字列を見つけられません
UniCode_CLI.h
[詳解]
1#pragma once
2
3#include <FK/UniCode.h>
4#include "Base_CLI.h"
5
6namespace FK_CLI
7{
9 public enum class fk_StringCode {
10 UTF16,
11 UTF8,
12 JIS,
13 SJIS,
14 EUC
15 };
16
18
29 public ref class fk_UniChar : fk_BaseObject {
30 internal:
31 ::FK::fk_UniChar * GetP(void);
32
33 public:
34#if !defined(FK_DOXYGEN_USER_PROCESS)
35 fk_UniChar(bool argNewFlg);
36#endif
38
42
44
50 fk_UniChar(int code);
51
54
57
59
63 property int Code {
64 int get();
65 void set(int);
66 }
67
69
75 property char Ascii {
76 char get();
77 }
78
80
86 void SetBuffer(unsigned char c1, unsigned char c2);
87
89
95 bool IsAscii(void);
96 };
97
99
112 public ref class fk_UniStr : fk_BaseObject {
113
114 internal:
115 ::FK::fk_UniStr * GetP(void);
116 static ::FK::fk_StringCode GetCode(fk_StringCode);
117
118 public:
119#if !defined(FK_DOXYGEN_USER_PROCESS)
120 fk_UniStr(bool argNewFlg);
121#endif
122
125
128
131
133
136 void Clear(void);
137
139
145 int GetLength(void);
146
148
169 bool GetLine(fk_UniStr^ str);
170
172
180 void MarkClear(void);
181
183
197 bool ReadFile(String^ fileName, fk_StringCode code);
198
200
213 bool ReadFile(String^ fileName);
214
216
224 void CopyStr(fk_UniStr^ str);
225
227
245 void Convert(String^ str, fk_StringCode code);
246
248
263 void Convert(String^ str);
264
266
275 int GetCode(int num);
276
278
294 int Find(int start, int code);
295
297
315 int Find(int start, unsigned char c1, unsigned char c2);
316
318
321 void PopBack(void);
322
324
332
334
339 void PushBack(int code);
340 };
341}
342
343/****************************************************************************
344 *
345 * Copyright (c) 1999-2024, Fine Kernel Project, All rights reserved.
346 *
347 * Redistribution and use in source and binary forms,
348 * with or without modification, are permitted provided that the
349 * following conditions are met:
350 *
351 * - Redistributions of source code must retain the above
352 * copyright notice, this list of conditions and the
353 * following disclaimer.
354 *
355 * - Redistributions in binary form must reproduce the above
356 * copyright notice, this list of conditions and the
357 * following disclaimer in the documentation and/or
358 * other materials provided with the distribution.
359 *
360 * - Neither the name of the copyright holders nor the names
361 * of its contributors may be used to endorse or promote
362 * products derived from this software without specific
363 * prior written permission.
364 *
365 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
366 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
367 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
368 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
369 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
370 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
371 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
372 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
373 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
374 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
375 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
376 * POSSIBILITY OF SUCH DAMAGE.
377 *
378 ****************************************************************************/
379/****************************************************************************
380 *
381 * Copyright (c) 1999-2024, Fine Kernel Project, All rights reserved.
382 *
383 * 本ソフトウェアおよびソースコードのライセンスは、基本的に
384 * 「修正 BSD ライセンス」に従います。以下にその詳細を記します。
385 *
386 * ソースコード形式かバイナリ形式か、変更するかしないかを問わず、
387 * 以下の条件を満たす場合に限り、再頒布および使用が許可されます。
388 *
389 * - ソースコードを再頒布する場合、上記の著作権表示、本条件一覧、
390 * および下記免責条項を含めること。
391 *
392 * - バイナリ形式で再頒布する場合、頒布物に付属のドキュメント等の
393 * 資料に、上記の著作権表示、本条件一覧、および下記免責条項を
394 * 含めること。
395 *
396 * - 書面による特別の許可なしに、本ソフトウェアから派生した製品の
397 * 宣伝または販売促進に、本ソフトウェアの著作権者の名前または
398 * コントリビューターの名前を使用してはならない。
399 *
400 * 本ソフトウェアは、著作権者およびコントリビューターによって「現
401 * 状のまま」提供されており、明示黙示を問わず、商業的な使用可能性、
402 * および特定の目的に対する適合性に関す暗黙の保証も含め、またそれ
403 * に限定されない、いかなる保証もないものとします。著作権者もコン
404 * トリビューターも、事由のいかんを問わず、損害発生の原因いかんを
405 * 問わず、かつ責任の根拠が契約であるか厳格責任であるか(過失その
406 * 他の)不法行為であるかを問わず、仮にそのような損害が発生する可
407 * 能性を知らされていたとしても、本ソフトウェアの使用によって発生
408 * した(代替品または代用サービスの調達、使用の喪失、データの喪失、
409 * 利益の喪失、業務の中断も含め、またそれに限定されない)直接損害、
410 * 間接損害、偶発的な損害、特別損害、懲罰的損害、または結果損害に
411 * ついて、一切責任を負わないものとします。
412 *
413 ****************************************************************************/
FK の各クラスの基盤となる基本クラス
Definition Base_CLI.h:104
Unicode の文字を表すクラス
Definition UniCode_CLI.h:29
~fk_UniChar()
デストラクタ
char Ascii
ASCII文字取得プロパティ
Definition UniCode_CLI.h:75
fk_UniChar()
コンストラクタ1
fk_UniChar(int code)
コンストラクタ2
void SetBuffer(unsigned char c1, unsigned char c2)
文字コード設定メソッド1
bool IsAscii(void)
ASCII文字判定メソッド
int Code
文字コードプロパティ
Definition UniCode_CLI.h:63
文字列板に表示する文字列を制御するクラス
Definition UniCode_CLI.h:112
void Convert(String^ str)
文字列生成メソッド2
~fk_UniStr()
デストラクタ
void CopyStr(fk_UniStr^ str)
文字列コピーメソッド
void PopBack(void)
最後尾文字削除メソッド
bool GetLine(fk_UniStr^ str)
一行分取得メソッド
void Clear(void)
初期化メソッド
void PushBack(int code)
後部文字追加メソッド3
bool ReadFile(String^ fileName)
ファイル全体取得メソッド2
int Find(int start, int code)
文字検索メソッド1
int GetCode(int num)
文字コード参照メソッド
fk_UniStr()
コンストラクタ
void Convert(String^ str, fk_StringCode code)
文字列生成メソッド1
void MarkClear(void)
マーク初期化メソッド
int Find(int start, unsigned char c1, unsigned char c2)
文字検索メソッド2
bool ReadFile(String^ fileName, fk_StringCode code)
ファイル全体取得メソッド1
int GetLength(void)
文字列長参照メソッド
void PushBack(fk_UniChar^ c)
後部文字追加メソッド1
Definition AppWindow_CLI.h:11
fk_StringCode
日本語文字コードを表す列挙型
Definition UniCode_CLI.h:9
@ JIS
ISO-2022-JIS (JISコード)
@ SJIS
Shift-JIS (SJISコード)
@ UTF8
Unicode (UTF-8)
@ UTF16
Unicode (UTF-16)