Lines Matching refs:len
99 size_t len = 0;
106 if (len > 0) {
107 func->ucl_emitter_append_len (c, len, func->ud);
132 len = 0;
137 len ++;
141 if (len > 0) {
142 func->ucl_emitter_append_len (c, len, func->ud);
162 ucl_utstring_append_character (unsigned char c, size_t len, void *ud)
166 if (len == 1) {
170 utstring_reserve (buf, len + 1);
171 memset (&buf->d[buf->i], c, len);
172 buf->i += len;
180 ucl_utstring_append_len (const unsigned char *str, size_t len, void *ud)
184 utstring_append_len (buf, str, len);
222 ucl_file_append_character (unsigned char c, size_t len, void *ud)
226 while (len --) {
234 ucl_file_append_len (const unsigned char *str, size_t len, void *ud)
238 fwrite (str, len, 1, fp);
277 ucl_fd_append_character (unsigned char c, size_t len, void *ud)
282 if (len == 1) {
286 buf = malloc (len);
289 while (len --) {
296 memset (buf, c, len);
297 if (write (fd, buf, len) == -1) {
309 ucl_fd_append_len (const unsigned char *str, size_t len, void *ud)
313 return write (fd, str, len);
467 ucl_utstring_append_len (obj->value.sv, obj->len, buf);
485 if (obj->len > LONG_STRING_LIMIT || (obj->flags & UCL_OBJECT_MULTILINE)) {
487 if (memchr (obj->value.sv, '\n', obj->len) != NULL) {