キーワード
-
include
_ class _ new (1) - mnew (1)
-
new
_ blktag (1) -
new
_ call (1) -
new
_ dvar (1) -
new
_ fcall (1) -
new
_ size (1) -
new
_ super (1) -
newline
_ node (1) - newtok (1)
-
proc
_ new (1) -
proc
_ s _ new (1) -
rb
_ ary _ new (1) -
rb
_ ary _ new2 (1) -
rb
_ ary _ new3 (1) -
rb
_ ary _ push (1) -
rb
_ ary _ store (1) -
rb
_ assoc _ new (1) -
rb
_ class _ new (1) -
rb
_ class _ new _ instance (1) -
rb
_ class _ s _ new (1) -
rb
_ define _ alias (1) -
rb
_ fix _ new (1) -
rb
_ int _ new (1) -
rb
_ mod _ alias _ method (1) -
rb
_ module _ new (1) -
rb
_ newobj (1) -
rb
_ node _ newnode (1) -
rb
_ proc _ new (1) -
rb
_ singleton _ class _ new (1) -
rb
_ str _ new (1) -
rb
_ str _ new2 (1) -
rb
_ str _ new4 (1) -
rb
_ thread _ s _ new (1) -
rb
_ time _ timespec _ new (1) -
rb
_ uint _ new (1)
検索結果
先頭5件
-
static NODE * new
_ call(NODE *r , ID m , NODE *a) (78304.0) -
-
static NODE * new
_ fcall(ID m , NODE *a) (78304.0) -
-
static NODE * new
_ super(NODE *a) (78304.0) -
-
static NODE * newline
_ node(NODE *node) (78304.0) -
nodeがNULLでなければ現在パース中の行番号を格納した NODE_NEWLINEをnodeの前に付加し、それを返す。
nodeがNULLでなければ現在パース中の行番号を格納した
NODE_NEWLINEをnodeの前に付加し、それを返す。 -
static char * newtok(void) (78304.0)
-
トークンバッファを初期化またはクリアし、 次のトークンを開始する。
トークンバッファを初期化またはクリアし、
次のトークンを開始する。 -
static int new
_ size(int size) (78304.0) -
必要なサイズ size から、最適なハッシュエントリの サイズを返す。
必要なサイズ size から、最適なハッシュエントリの
サイズを返す。 -
static struct BLOCKTAG * new
_ blktag(void) (78304.0) -
-
static struct RVarmap * new
_ dvar(ID id , VALUE value , struct RVarmap *prev) (78304.0) -
-
VALUE rb
_ class _ new _ instance(int argc , VALUE *argv , VALUE klass) (18352.0) -
Class#new の実体です。
Class#new の実体です。 -
VALUE rb
_ str _ new2(const char *ptr) (18352.0) -
rb_str_new(ptr, strlen(ptr))
rb_str_new(ptr, strlen(ptr)) -
static VALUE proc
_ s _ new(int argc , VALUE *argv , VALUE klass) (18352.0) -
Proc.new の実体。
Proc.new の実体。 -
VALUE rb
_ ary _ new() (18340.0) -
空の Ruby の配列を作成し返します。
空の Ruby の配列を作成し返します。
対応するRubyコード
ary = Array.new または
ary = []
使用例
VALUE ary;
ary = rb_ary_new(); -
VALUE rb
_ ary _ new2(long len) (18340.0) -
長さ len 分だけメモリを確保した、 長さゼロの Ruby の配列を作成し返します。
長さ len 分だけメモリを確保した、
長さゼロの Ruby の配列を作成し返します。
対応するRubyコード
ary = Array.new(len)
使用例
VALUE ary;
long len;
...
ary = rb_ary_new2(len); -
VALUE rb
_ ary _ new3(long n , VALUE i0 , i1 , i2 , . . . ) (18322.0) -
長さ n で要素に i0 i1 i2 …を格納した Ruby の配列を作成し返します。
長さ n で要素に i0 i1 i2 …を格納した
Ruby の配列を作成し返します。
対応するRubyコード
ary = Array[i0, i1, i2...] または
ary = [i0, i1, i2...]
使用例
VALUE ary;
int i[3] = { 1, 2, 3 };
ary = rb_ary_new3(3, INT2FIX(i[0]), INT2FIX(i[1]), INT2FIX(i[2])); -
VALUE rb
_ assoc _ new(VALUE a , VALUE b) (18322.0) -
[a,b] を返します。
[a,b] を返します。
対応するRubyコード
[a, b]
使用例
VALUE assoc_string(VALUE str_a, VALUE str_b)
{
Check_Type(str_a, T_STRING);
Check_Type(str_b, T_STRING);
return rb_assoc_new(str_a, str_b);
} -
VALUE rb
_ str _ new(const char *ptr , long len) (18322.0) -
ptr から len バイト分をコピーして Ruby の文字列を作成し返します。
ptr から len バイト分をコピーして
Ruby の文字列を作成し返します。
rb_str_new(0,0)
では空文字列を生成して返します。 -
NODE * rb
_ node _ newnode(enum node _ type type , NODE *a0 , NODE *a1 , NODE *a2) (18304.0) -
ノードタイプが type で a0 a1 a2 を 要素に持つノードを生成し、返します。
ノードタイプが type で a0 a1 a2 を
要素に持つノードを生成し、返します。 -
VALUE rb
_ class _ new(VALUE super) (18304.0) -
super をスーパークラスとして 新しいクラスオブジェクトを生成し、返します。
super をスーパークラスとして
新しいクラスオブジェクトを生成し、返します。 -
VALUE rb
_ fix _ new(long v) (18304.0) -
-
VALUE rb
_ int _ new(long v) (18304.0) -
-
VALUE rb
_ module _ new(void) (18304.0) -
新しいモジュールオブジェクトを作成し、返します。
新しいモジュールオブジェクトを作成し、返します。 -
VALUE rb
_ newobj(void) (18304.0) -
未使用のオブジェクト領域一つへのポインタを返す。 返り値が返ってきたときは失敗はない。
未使用のオブジェクト領域一つへのポインタを返す。
返り値が返ってきたときは失敗はない。 -
VALUE rb
_ proc _ new(func , val) (18304.0) -
VALUE (*func)(ANYARGS); VALUE val;
VALUE (*func)(ANYARGS);
VALUE val; -
VALUE rb
_ singleton _ class _ new(VALUE super) (18304.0) -
super をスーパークラスとする特異クラスを生成し、返します。
super をスーパークラスとする特異クラスを生成し、返します。 -
VALUE rb
_ str _ new4(VALUE orig) (18304.0) -
文字列 orig の変更不可能な複製を作成し返します。
文字列 orig の変更不可能な複製を作成し返します。 -
VALUE rb
_ time _ timespec _ new(const struct timespec *ts , int offset) (18304.0) -
引数 ts、offset を元に Time オブジェクトを作成して返します。
引数 ts、offset を元に Time オブジェクトを作成して返します。
@param ts timespec 構造体のポインタ
@param offset 協定世界時との時差(秒)。
-86400 < offset < 86400 の場合は指定した時差に、INT_MAX
を指定した場合は地方時、INT_MAX-1 を指定した場合は UTC に
なります。
@raise ArgumentError offset に上述の範囲以外の値を指定した場合に発生し
ま... -
VALUE rb
_ uint _ new(unsigned int v) (18304.0) -
-
static VALUE include
_ class _ new(VALUE module , VALUE super) (18304.0) -
super をスーパークラスとして モジュールの「化身」クラスを作成し返します。
super をスーパークラスとして
モジュールの「化身」クラスを作成し返します。 -
static VALUE mnew(VALUE klass
, VALUE obj , ID id , VALUE mklass) (18304.0) -
-
static VALUE proc
_ new(VALUE klass) (18304.0) -
評価器のその時点でのスナップショットを保存する Proc オブジェクトを生成します。クラスを klass にします。
評価器のその時点でのスナップショットを保存する
Proc オブジェクトを生成します。クラスを klass にします。 -
static VALUE rb
_ class _ s _ new(int argc , VALUE *argv) (18304.0) -
-
static VALUE rb
_ thread _ s _ new(int argc , VALUE *argv , VALUE klass) (18304.0) -
-
void rb
_ define _ alias(VALUE klass , const char *new , const char *old) (352.0) -
クラス klass のインスタンスメソッド old の 別名 new を定義します。
クラス klass のインスタンスメソッド old の
別名 new を定義します。 -
static VALUE rb
_ mod _ alias _ method(VALUE mod , VALUE newname , VALUE oldname) (304.0) -
-
VALUE rb
_ ary _ push(VALUE ary , VALUE item) (22.0) -
配列 ary の末尾に item を追加します。
配列 ary の末尾に item を追加します。
対応するRubyコード
ary.push(item) または
ary << item
使用例
VALUE ary = rb_ary_new();
char line[4096];
while ((gets(line)) != NULL){
item = process_apache_log(line);
rb_ary_push(ary, item);
} -
void rb
_ ary _ store(VALUE ary , long idx , VALUE val) (22.0) -
配列 ary のインデックス idx に val を格納します。idx が範囲を越えるときは Ruby レベルと同じく自動的にサイズが拡張されます。
配列 ary のインデックス idx に
val を格納します。idx が範囲を越えるときは
Ruby レベルと同じく自動的にサイズが拡張されます。
対応するRubyコード
ary[idx] = val
使用例
VALUE ary;
int idx;
int n[5] = { 1, 2, 3, 4, 5 };
ary = rb_ary_new();
for (idx=0; idx<5; idx++) rb_ary_store(ary, idx, INT2FIX(n[idx]));