Lines Matching defs:line

31 /* line64.c - routines for dealing with the slapd line format */
86 * str_parse_line - takes a line of the form "type:[:] value" and splits it
94 char *line,
104 while ( ISBLANK( *line ) ) {
105 line++;
107 *type = line;
109 for ( s = line; *s && *s != ':'; s++ )
119 "on line \"%s\"\n", line, 0, 0 );
127 for ( p = s - 1; p > line && ISBLANK( *p ); p-- ) {
157 /* check for continued line markers that should be deleted */
174 "str_parse_line: invalid base 64 char on line \"%s\"\n",
175 line, 0, 0 );
253 * str_getline - return the next "line" (minus newline) of input from a
256 * a single big line before returning. if a line begins with a white
257 * space character, it is a continuation of the previous line. the white
422 * on the current line. The LDIF lines we create will contain at most
423 * "wraplen" characters on each line, unless "wraplen" is -1, in which
424 * case output line length is unlimited.
510 * return malloc'd, zero-terminated LDIF line
545 * returned is the last line number read, in *lineno.
550 char line[BUFSIZ];
556 while ( fgets( line, sizeof(line), fp ) != NULL ) {
560 /* ldif entries are terminated by a \n on a line by itself */
561 if ( line[0] == '\0' || line[0] == '\n'
563 || ( line[0] == '\r' && line[1] == '\n' ) /* DOS format */
571 } else if ( line[0] == '#' ) {
575 len = strlen( line );
578 if ( len > 0 && line[len-1] == '\r' ) {
580 line[len] = '\0';
581 } else if ( len > 1 && line[len-2] == '\r' && line[len-1] == '\n' ) {
583 line[len-1] = line[len];
584 line[len] = '\0';
600 memcpy( buf + cur, line, len + 1 );