NewtStr.c

文字列処理 [詳細]

#include <string.h>
#include "NewtCore.h"
#include "NewtStr.h"

ソースコードを見る。

関数

static newtRef NewtParamStr (char *baseStr, size_t baseStrLen, newtRefArg paramStrArray, bool ifthen)
static bool NewtBeginsWith (const char *str, const char *sub)
static bool NewtEndsWith (const char *str, const char *sub)
newtRef NsChr (newtRefArg rcvr, newtRefArg r)
newtRef NsOrd (newtRefArg rcvr, newtRefArg r)
newtRef NsStrLen (newtRefArg rcvr, newtRefArg r)
newtRef NsSPrintObject (newtRefArg rcvr, newtRefArg r)
newtRef NsSplit (newtRefArg rcvr, newtRefArg r, newtRefArg sep)
newtRef NsParamStr (newtRefArg rcvr, newtRefArg baseString, newtRefArg paramStrArray)
newtRef NsSubStr (newtRefArg rcvr, newtRefArg r, newtRefArg start, newtRefArg count)
newtRef NsStrEqual (newtRefArg rcvr, newtRefArg a, newtRefArg b)
newtRef NsStrExactCompare (newtRefArg rcvr, newtRefArg a, newtRefArg b)
newtRef NsBeginsWith (newtRefArg rcvr, newtRefArg str, newtRefArg sub)
newtRef NsEndsWith (newtRefArg rcvr, newtRefArg str, newtRefArg sub)


説明

文字列処理

作者:
M.Nukui
日付:
2004-01-25
Copyright (C) 2003-2004 M.Nukui All rights reserved.

NewtStr.c で定義されています。


関数

bool NewtBeginsWith ( const char *  str,
const char *  sub 
) [static]

文字列の前半部が部分文字列と一致するかチェックする

引数:
str [in] 文字列
sub [in] 部分文字列
戻り値:
true 前半部が部分文字列と一致する
false 前半部が部分文字列と一致しない

NewtStr.c161 行で定義されています。

参照元 NsBeginsWith().

bool NewtEndsWith ( const char *  str,
const char *  sub 
) [static]

文字列の最後尾が部分文字列と一致するかチェックする

引数:
str [in] 文字列
sub [in] 部分文字列
戻り値:
true 最後尾が部分文字列と一致する
false 最後尾が部分文字列と一致しない

NewtStr.c186 行で定義されています。

参照元 NsEndsWith().

newtRef NewtParamStr ( char *  baseStr,
size_t  baseStrLen,
newtRefArg  paramStrArray,
bool  ifthen 
) [static]

ベース文字列のパラメータを置き換えて新しい文字列を作成する

引数:
baseStr [in] ベース文字列(C文字列)
baseStrLen [in] ベース文字列の長さ
paramStrArray [in] パラメータ配列
ifthen [in] 条件処理
戻り値:
文字列オブジェクト

NewtStr.c37 行で定義されています。

参照先 NcStrCatNewtGetArraySlot()NewtMakeString()NewtRefIsNotNILNewtStrCat2().

参照元 NsParamStr().

関数の呼び出しグラフ:

newtRef NsBeginsWith ( newtRefArg  rcvr,
newtRefArg  str,
newtRefArg  sub 
)

文字列の前半部が部分文字列と一致するかチェックする

引数:
rcvr [in] レシーバ
str [in] 文字列
sub [in] 部分文字列
戻り値:
TRUE 前半部が部分文字列と一致する
NIL 前半部が部分文字列と一致しない

NewtStr.c523 行で定義されています。

参照先 kNErrNotAStringNewtBeginsWith()NewtMakeBooleanNewtRefIsString()NewtRefToStringNewtThrow().

参照元 NVMInitGlobalFns1().

関数の呼び出しグラフ:

newtRef NsChr ( newtRefArg  rcvr,
newtRefArg  r 
)

整数を文字に変換する

引数:
rcvr [in] レシーバ
r [in] 整数
戻り値:
文字
覚え書き:
グローバル関数用

NewtStr.c211 行で定義されています。

参照先 kNErrNotAnIntegerNewtMakeCharacterNewtRefIsInteger()NewtRefToInteger()NewtThrow().

参照元 NVMInitGlobalFns1().

関数の呼び出しグラフ:

newtRef NsEndsWith ( newtRefArg  rcvr,
newtRefArg  str,
newtRefArg  sub 
)

文字列の最後尾が部分文字列と一致するかチェックする

引数:
rcvr [in] レシーバ
str [in] 文字列
sub [in] 部分文字列
戻り値:
TRUE 最後尾が部分文字列と一致する
NIL 最後尾が部分文字列と一致しない

NewtStr.c550 行で定義されています。

参照先 kNErrNotAStringNewtEndsWith()NewtMakeBooleanNewtRefIsString()NewtRefToStringNewtThrow().

参照元 NVMInitGlobalFns1().

関数の呼び出しグラフ:

newtRef NsOrd ( newtRefArg  rcvr,
newtRefArg  r 
)

文字を整数に変換する

引数:
rcvr [in] レシーバ
r [in] 文字
戻り値:
整数
覚え書き:
グローバル関数用

NewtStr.c231 行で定義されています。

参照先 kNErrNotAnIntegerNewtMakeInteger()NewtRefIsCharacterNewtRefToCharacterNewtThrow().

参照元 NVMInitGlobalFns1().

関数の呼び出しグラフ:

newtRef NsParamStr ( newtRefArg  rcvr,
newtRefArg  baseString,
newtRefArg  paramStrArray 
)

ベース文字列のパラメータを置き換えて新しい文字列を作成する

引数:
rcvr [in] レシーバ
baseString [in] ベース文字列
paramStrArray [in] パラメータ配列
戻り値:
文字列オブジェクト
覚え書き:
グローバル関数用

NewtStr.c361 行で定義されています。

参照先 kNErrNotAnArraykNErrNotAStringNewtParamStr()NewtRefIsArray()NewtRefIsString()NewtRefToStringNewtStringLength()NewtThrow().

参照元 NVMInitExGlobalFns().

関数の呼び出しグラフ:

newtRef NsSplit ( newtRefArg  rcvr,
newtRefArg  r,
newtRefArg  sep 
)

文字列を指定の区切り文字で分解する

引数:
rcvr [in] レシーバ
r [in] 文字列オブジェクト
sep [in] 区切り文字
戻り値:
配列オブジェクト
覚え書き:
グローバル関数用

NewtStr.c296 行で定義されています。

参照先 kNErrNotAStringkNewtCharacterkNewtRefNILkNewtRefUnbindNcAddArraySlot()NewtGetRefType()NewtMakeArray()NewtMakeArray2()NewtMakeString2()NewtRefIsString()NewtRefToCharacterNewtRefToStringNewtThrow()NSSTR.

参照元 NVMInitExGlobalFns().

関数の呼び出しグラフ:

newtRef NsSPrintObject ( newtRefArg  rcvr,
newtRefArg  r 
)

オブジェクトを表示可能な文字列に変換する

引数:
rcvr [in] レシーバ
r [in] オブジェクト
戻り値:
文字列オブジェクト
覚え書き:
グローバル関数用

NewtStr.c272 行で定義されています。

参照先 NcStrCatNSSTR.

参照元 NVMInitGlobalFns1().

newtRef NsStrEqual ( newtRefArg  rcvr,
newtRefArg  a,
newtRefArg  b 
)

Determine if two strings are equal, ignoring case.

引数:
rcvr self (ignored).
a the first string to consider.
b the second string to consider.
戻り値:
true if the two strings are equal, nil otherwise.

NewtStr.c444 行で定義されています。

参照先 kNErrNotAStringkNewtRefNILkNewtRefTRUENewtRefIsString()NewtRefToStringNewtThrow().

参照元 NVMInitGlobalFns1().

関数の呼び出しグラフ:

newtRef NsStrExactCompare ( newtRefArg  rcvr,
newtRefArg  a,
newtRefArg  b 
)

Compare two strings, returning an integer representing the result of the comparison. The comparison is case sensitive.

引数:
rcvr self (ignored).
a the first string to consider.
b the second string to consider.
戻り値:
an integer representing the result of the comparison (a < b -> < 0, a = b -> 0, a > b -> > 0)

NewtStr.c485 行で定義されています。

参照先 kNErrNotAStringNewtMakeInteger()NewtRefIsString()NewtRefToStringNewtThrow().

参照元 NVMInitGlobalFns1().

関数の呼び出しグラフ:

newtRef NsStrLen ( newtRefArg  rcvr,
newtRefArg  r 
)

文字列の長さを取得

引数:
rcvr [in] レシーバ
r [in] 文字列オブジェクト
戻り値:
文字列の長さ
覚え書き:
グローバル関数用

NewtStr.c252 行で定義されています。

参照先 kNErrNotAStringNewtMakeInteger()NewtRefIsString()NewtStringLength()NewtThrow().

参照元 NVMInitGlobalFns1().

関数の呼び出しグラフ:

newtRef NsSubStr ( newtRefArg  rcvr,
newtRefArg  r,
newtRefArg  start,
newtRefArg  count 
)

Extract the substring of a string.

引数:
rcvr self (ignored).
r the string to create a substring of.
start the offset of the first character of the substring.
count the number of characters to extract or NIL to go til the end.
戻り値:
a new string
覚え書き:
highly unefficient.

NewtStr.c385 行で定義されています。

参照先 kNErrNotAnIntegerkNErrNotAStringkNErrOutOfRangeNewtMakeString()NewtRefIsInteger()NewtRefIsNIL()NewtRefIsString()NewtRefToInteger()NewtRefToStringNewtThrow().

参照元 NVMInitGlobalFns1().

関数の呼び出しグラフ:


NEWT/0に対してThu Nov 23 17:13:01 2006に生成されました。  doxygen 1.5.0