Lines Matching refs:object_nl
483 if (state->object_nl) ruby_xfree(state->object_nl);
557 state->object_nl = fstrndup(RSTRING_PTR(tmp), len + 1);
627 rb_hash_aset(result, ID2SYM(i_object_nl), rb_str_new(state->object_nl, state->object_nl_len));
674 char *object_nl = state->object_nl;
694 if (object_nl) {
695 fbuffer_append(buffer, object_nl, object_nl_len);
710 if (object_nl) {
711 fbuffer_append(buffer, object_nl, object_nl_len);
929 * * *object_nl*: a string that is put at the end of a JSON object (default: ''),
969 objState->object_nl = fstrndup(origState->object_nl, origState->object_nl_len);
1109 * call-seq: object_nl()
1117 return state->object_nl ? rb_str_new(state->object_nl, state->object_nl_len) : rb_str_new2("");
1121 * call-seq: object_nl=(object_nl)
1126 static VALUE cState_object_nl_set(VALUE self, VALUE object_nl)
1130 Check_Type(object_nl, T_STRING);
1131 len = RSTRING_LEN(object_nl);
1133 if (state->object_nl) {
1134 ruby_xfree(state->object_nl);
1135 state->object_nl = NULL;
1138 if (state->object_nl) ruby_xfree(state->object_nl);
1139 state->object_nl = strdup(RSTRING_PTR(object_nl));
1344 rb_define_method(cState, "object_nl", cState_object_nl, 0);
1345 rb_define_method(cState, "object_nl=", cState_object_nl_set, 1);
1402 i_object_nl = rb_intern("object_nl");