Home
last modified time | relevance | path

Searched refs:numchars (Results 1 – 8 of 8) sorted by relevance

/third_party/qrcodegen/rust-no-heap/src/
Dlib.rs286 bb.append_bits(u32::try_from(seg.numchars).unwrap(), seg.mode.num_char_count_bits(version)); in encode_segments_to_codewords()
1083 numchars: usize, field
1186 pub fn new(mode: QrSegmentMode, numchars: usize, data: &'a [u8], bitlength: usize) -> Self { in new()
1188 Self { mode, numchars, data, bitlength } in new()
1202 self.numchars in num_chars()
1216 pub fn calc_buffer_size(mode: QrSegmentMode, numchars: usize) -> Option<usize> { in calc_buffer_size()
1217 let temp = Self::calc_bit_length(mode, numchars)?; in calc_buffer_size()
1228 fn calc_bit_length(mode: QrSegmentMode, numchars: usize) -> Option<usize> { in calc_bit_length()
1231 Some(numchars) in calc_bit_length()
1243 assert_eq!(numchars, 0); in calc_bit_length()
[all …]
/third_party/python/Lib/idlelib/
Dsqueezer.py43 numchars = m.start() - pos
44 pos += numchars
45 current_column += numchars
/third_party/qrcodegen/rust/src/
Dlib.rs245 bb.append_bits(u32::try_from(seg.numchars).unwrap(), seg.mode.num_char_count_bits(version)); in encode_segments_advanced()
958 numchars: usize, field
1082 pub fn new(mode: QrSegmentMode, numchars: usize, data: Vec<bool>) -> Self { in new()
1083 Self { mode, numchars, data } in new()
1097 self.numchars in num_chars()
1118 if seg.numchars >= limit { in get_total_bits()
/third_party/python/Lib/encodings/
Dpunycode.py91 def adapt(delta, first, numchars): argument
96 delta += delta // numchars
/third_party/python/Lib/
Dtokenize.py433 numchars = '0123456789'
535 if (initial in numchars or # ordinary number
/third_party/skia/third_party/externals/imgui/
Dimstb_textedit.h1181 static StbUndoRecord *stb_text_create_undo_record(StbUndoState *state, int numchars) in stb_text_create_undo_record() argument
1192 if (numchars > STB_TEXTEDIT_UNDOCHARCOUNT) { in stb_text_create_undo_record()
1199 while (state->undo_char_point + numchars > STB_TEXTEDIT_UNDOCHARCOUNT) in stb_text_create_undo_record()
/third_party/mesa3d/src/imgui/
Dimstb_textedit.h1150 static StbUndoRecord *stb_text_create_undo_record(StbUndoState *state, int numchars) in stb_text_create_undo_record() argument
1161 if (numchars > STB_TEXTEDIT_UNDOCHARCOUNT) { in stb_text_create_undo_record()
1168 while (state->undo_char_point + numchars > STB_TEXTEDIT_UNDOCHARCOUNT) in stb_text_create_undo_record()
/third_party/node/src/
Dnode_file.cc1031 ssize_t numchars; in InternalModuleReadJSON() local
1041 numchars = uv_fs_read(loop, &read_req, fd, &buf, 1, offset, nullptr); in InternalModuleReadJSON()
1044 if (numchars < 0) { in InternalModuleReadJSON()
1048 offset += numchars; in InternalModuleReadJSON()
1049 } while (static_cast<size_t>(numchars) == kBlockSize); in InternalModuleReadJSON()