Lines Matching defs:string

41 #include <string.h>
60 * string. These are linked into lists to record strings, with all but
62 * of a string is terminated within the GLH_SEG_SIZE characters with a
67 GlhLineSeg *next; /* The next sub-string of the history line */
68 char s[GLH_SEG_SIZE]; /* The sub-string. Beware that only the final */
95 int used; /* The number of times this string is pointed to by */
206 static int _glh_decode_timestamp(char *string, char **endp, time_t *timestamp);
406 int empty; /* True if the string is empty */
429 * How long is the string to be recorded, being careful not to include
574 * prefix string that differs from the last line that was recalled.
656 * prefix string.
760 * Only store a copy of the prefix string if it isn't a zero-length string.
999 * string, the idea being that the file can
1051 * specified comment string.
1146 * comment const char * The same comment string that was passed to
1165 size_t comment_len; /* The length of the comment string */
1180 * Measure the length of the comment string.
1201 * Check that the line starts with the comment string.
1282 * Convert the line number to a string.
1298 * Read a timestamp from a string.
1301 * string char * The string to read from.
1304 * character in string[].
1310 static int _glh_decode_timestamp(char *string, char **endp, time_t *timestamp)
1318 char timestr[TSLEN+1]; /* The timestamp part of the string */
1324 if(string[0] == '\?') {
1325 *endp = string+1;
1332 if(strlen(string) < TSLEN) {
1333 *endp = string;
1337 * Copy the timestamp out of the string.
1339 strncpy(timestr, string, TSLEN);
1346 *endp = string;
1350 * Advance the string pointer over the successfully read timestamp.
1352 *endp = string + TSLEN;
1438 * fmt const char * A format string. This can contain arbitrary
1464 enum {TSMAX=32}; /* The maximum length of the date and time string */
1469 int len; /* The length of a string to be written */
1532 const char *fptr; /* A pointer into the format string */
1540 * Parse the format string.
1545 * Search for the start of the next format directive or the end of the string.
2163 * n size_t The length of the string, excluding any '\0'
2190 * How many string segments will be needed to record the new line,
2370 * Return non-zero if a given string is equal to a given segmented line
2375 * line const char * The string to be compared to the segmented
2412 * prefix GlhHashNode * The search prefix, or NULL to match any string.
2422 * When prefix==NULL, this means that the nul string
2452 * Did we reach the end of the prefix string before finding
2459 * Copy a given history line into a specified output string.
2553 * empty string by glh_step_stream()).
2577 * Unless we have reached the end of the string, move the iterator