Lines Matching refs:begin

477 	const char *begin, *end;
489 begin = *ptr;
496 *scanned_length = end - begin;
498 str = timelib_calloc(1, end - begin + 1);
499 memcpy(str, begin, end - begin);
522 const char *begin, *end;
532 begin = *ptr;
537 str = timelib_calloc(1, end - begin);
538 memcpy(str, begin + 1, end - begin - 1);
539 tmp_nr = strtod(str, NULL) * pow(10, 7 - (end - begin));
604 const char *begin = *ptr, *end;
612 word = timelib_calloc(1, end - begin + 1);
613 memcpy(word, begin, end - begin);
637 const char *begin = *ptr, *end;
645 word = timelib_calloc(1, end - begin + 1);
646 memcpy(word, begin, end - begin);
696 const char *begin = *ptr, *end;
704 word = timelib_calloc(1, end - begin + 1);
705 memcpy(word, begin, end - begin);
813 const char *begin = *ptr, *end;
827 word = timelib_calloc(1, end - begin + 1);
828 memcpy(word, begin, end - begin);
830 if (end - begin < MAX_ABBR_LEN && (tp = abbr_search(word, -1, 0))) {
848 const char *begin = *ptr, *end;
857 switch (end - begin) {
861 return sHOUR(strtol(begin, NULL, 10));
865 if (begin[1] == ':') {
867 tmp = sHOUR(strtol(begin, NULL, 10)) + sMIN(strtol(begin + 2, NULL, 10));
869 } else if (begin[2] == ':') {
871 tmp = sHOUR(strtol(begin, NULL, 10)) + sMIN(strtol(begin + 3, NULL, 10));
875 tmp = strtol(begin, NULL, 10);
880 if (begin[2] != ':') {
885 tmp = sHOUR(strtol(begin, NULL, 10)) + sMIN(strtol(begin + 3, NULL, 10));
890 tmp = strtol(begin, NULL, 10);
895 if (begin[2] != ':' || begin[5] != ':') {
900 …tmp = sHOUR(strtol(begin, NULL, 10)) + sMIN(strtol(begin + 3, NULL, 10)) + strtol(begin + 6, NULL,…
910 const char *begin = *ptr;
922 if (*begin == '+') {
927 retval = sMIN(strtol(begin + 1, NULL, 10));
928 } else if (*begin == '-') {
933 retval = -1 * sMIN(strtol(begin + 1, NULL, 10));
2082 add_pbf_error(s, TIMELIB_ERR_UNEXPECTED_DATA, "Unexpected data found.", string, begin); \
2087 add_pbf_error(s, TIMELIB_ERR_UNEXPECTED_DATA, "Unexpected data found.", string, begin); \
2191 const char *begin;
2226 begin = ptr;
2240 … add_pbf_error(s, TIMELIB_ERR_FORMAT_LITERAL_MISMATCH, "Format literal not found", string, begin);
2267 … add_pbf_error(s, TIMELIB_ERR_NO_TEXTUAL_DAY, "A textual day could not be found", string, begin);
2281 …dd_pbf_error(s, TIMELIB_ERR_NO_TWO_DIGIT_DAY, "A two digit day could not be found", string, begin);
2293 …_MERIDIAN_BEFORE_HOUR, "A 'day of year' can only come after a year has been found", string, begin);
2296 …LIB_ERR_NO_THREE_DIGIT_DAY_OF_YEAR, "A three digit day-of-year could not be found", string, begin);
2312 …bf_error(s, TIMELIB_ERR_NO_TWO_DIGIT_MONTH, "A two digit month could not be found", string, begin);
2321 …dd_pbf_error(s, TIMELIB_ERR_NO_TEXTUAL_MONTH, "A textual month could not be found", string, begin);
2333 …_pbf_error(s, TIMELIB_ERR_NO_TWO_DIGIT_YEAR, "A two digit year could not be found", string, begin);
2344 …bf_error(s, TIMELIB_ERR_NO_FOUR_DIGIT_YEAR, "A four digit year could not be found", string, begin);
2353 …ror(s, TIMELIB_ERR_NO_FOUR_DIGIT_YEAR, "An expanded digit year could not be found", string, begin);
2363 …_pbf_error(s, TIMELIB_ERR_NO_TWO_DIGIT_HOUR, "A two digit hour could not be found", string, begin);
2367 … add_pbf_error(s, TIMELIB_ERR_HOUR_LARGER_THAN_12, "Hour cannot be higher than 12", string, begin);
2377 …_pbf_error(s, TIMELIB_ERR_NO_TWO_DIGIT_HOUR, "A two digit hour could not be found", string, begin);
2385 …IB_ERR_MERIDIAN_BEFORE_HOUR, "Meridian can only come after an hour has been found", string, begin);
2388 add_pbf_error(s, TIMELIB_ERR_NO_MERIDIAN, "A meridian could not be found", string, begin);
2405 …_error(s, TIMELIB_ERR_NO_TWO_DIGIT_MINUTE, "A two digit minute could not be found", string, begin);
2421 …_error(s, TIMELIB_ERR_NO_TWO_DIGIT_SECOND, "A two digit second could not be found", string, begin);
2437 …TIMELIB_ERR_NO_SIX_DIGIT_MICROSECOND, "A six digit microsecond could not be found", string, begin);
2452 …LIB_ERR_NO_THREE_DIGIT_MILLISECOND, "A three digit millisecond could not be found", string, begin);
2476 …, TIMELIB_ERR_NO_SEP_SYMBOL, "The separation symbol ([;:/.,-]) could not be found", string, begin);
2485 …pbf_error(s, TIMELIB_ERR_NO_SEP_SYMBOL, "The separation symbol could not be found", string, begin);
2506 … add_pbf_error(s, TIMELIB_ERR_EXPECTED_ESCAPE_CHAR, "Escaped character expected", string, begin);
2511 …f_error(s, TIMELIB_ERR_NO_ESCAPED_CHAR, "The escaped character could not be found", string, begin);
2527 …(s, TIMELIB_ERR_NO_FOUR_DIGIT_YEAR_ISO, "A four digit ISO year could not be found", string, begin);
2535 …_error(s, TIMELIB_ERR_NO_TWO_DIGIT_WEEK, "A two digit ISO week could not be found", string, begin);
2540 add_pbf_error(s, TIMELIB_ERR_INVALID_WEEK, "ISO Week must be between 1 and 53", string, begin);
2548 …ror(s, TIMELIB_ERR_NO_DAY_OF_WEEK, "A single digit day of week could not be found", string, begin);
2552 …bf_error(s, TIMELIB_ERR_INVALID_DAY_OF_WEEK, "Day of week must be between 1 and 7", string, begin);
2564 …r(s, TIMELIB_ERR_TZID_NOT_FOUND, "The timezone could not be found in the database", string, begin);
2574 …d_pbf_error(s, TIMELIB_ERR_INVALID_TZ_OFFSET, "Invalid timezone offset in minutes", string, begin);
2583 …d_pbf_error(s, TIMELIB_ERR_WRONG_FORMAT_SEP, "The format separator does not match", string, begin);