• Home
  • Raw
  • Download

Lines Matching refs:num_transitions

39     size_t num_transitions;  member
110 unsigned char *isdsts, size_t num_transitions,
115 size_t num_transitions);
512 size_t num_trans = self->num_transitions; in zoneinfo_fromutc()
896 Py_ssize_t num_transitions = PyTuple_Size(trans_utc); in load_data() local
897 if (num_transitions < 0) { in load_data()
906 self->num_transitions = (size_t)num_transitions; in load_data()
911 PyMem_Malloc(self->num_transitions * sizeof(int64_t)); in load_data()
912 trans_idx = PyMem_Malloc(self->num_transitions * sizeof(Py_ssize_t)); in load_data()
914 for (size_t i = 0; i < self->num_transitions; ++i) { in load_data()
983 utcoff_to_dstoff(trans_idx, utcoff, dstoff, isdst, self->num_transitions, in load_data()
988 self->num_transitions)) { in load_data()
1008 PyMem_Calloc(self->num_transitions, sizeof(_ttinfo *)); in load_data()
1009 for (size_t i = 0; i < self->num_transitions; ++i) { in load_data()
1041 if (!self->num_transitions) { in load_data()
1045 idx = trans_idx[self->num_transitions - 1]; in load_data()
1970 unsigned char *isdsts, size_t num_transitions, in utcoff_to_dstoff() argument
1979 for (size_t i = 1; i < num_transitions; ++i) { in utcoff_to_dstoff()
2055 size_t num_transitions) in ts_to_local() argument
2057 if (num_transitions == 0) { in ts_to_local()
2063 trans_local[i] = PyMem_Malloc(num_transitions * sizeof(int64_t)); in ts_to_local()
2068 memcpy(trans_local[i], trans_utc, num_transitions * sizeof(int64_t)); in ts_to_local()
2088 for (size_t i = 1; i < num_transitions; ++i) { in ts_to_local()
2147 size_t num_trans = self->num_transitions; in find_ttinfo()
2152 else if (!num_trans || ts > local_transitions[self->num_transitions - 1]) { in find_ttinfo()
2157 size_t idx = _bisect(ts, local_transitions, self->num_transitions) - 1; in find_ttinfo()
2158 assert(idx < self->num_transitions); in find_ttinfo()