Lines Matching defs:editWidth

69   int editWidth{edit.width.value_or(0)};
73 editWidth = std::max(1, editWidth);
81 int leadingSpaces{std::max(0, editWidth - subTotal)};
82 if (editWidth > 0 && leadingSpaces + subTotal > editWidth) {
83 return EmitRepeated(io, '*', editWidth);
158 int editWidth{edit.width.value_or(0)};
165 editWidth = std::max(1, editWidth);
173 int leadingSpaces{std::max(0, editWidth - subTotal)};
174 if (editWidth > 0 && leadingSpaces + subTotal > editWidth) {
175 return EmitRepeated(io, '*', editWidth);
296 int editWidth{edit.width.value_or(0)}; // 'w' field
305 if (editWidth == 0) { // "the processor selects the field width"
352 return editWidth > 0 &&
354 static_cast<std::size_t>(editWidth)
355 ? EmitRepeated(io_, '*', editWidth)
356 : EmitPrefix(edit, converted.length, editWidth) &&
403 int width{editWidth > 0 ? editWidth : totalLength};
412 if (totalLength < width && editWidth == 0) {
432 const int editWidth{edit.width.value_or(0)}; // 'w' field
438 if (editWidth == 0) { // "the processor selects the field width"
453 return editWidth > 0 &&
454 converted.length > static_cast<std::size_t>(editWidth)
455 ? EmitRepeated(io_, '*', editWidth)
456 : EmitPrefix(edit, converted.length, editWidth) &&
545 int width{editWidth > 0 || trailingBlanks_ ? editWidth : totalLength};
570 int editWidth{edit.width.value_or(0)};
573 if (editWidth > 0 && significantDigits == 0) {
587 if (editWidth == 0 && !edit.expoDigits) { // G0.d -> G0.dE0
595 if (editWidth > 0) {
712 int editWidth{edit.width.value_or(0)}; // 'w' field
713 if ((editWidth == 0 && !edit.digits) || editDigits == 0) {
723 return editWidth > 0 && converted.length > editWidth
724 ? EmitRepeated(io_, '*', editWidth)
725 : (editWidth <= converted.length ||
726 EmitRepeated(io_, ' ', editWidth - converted.length)) &&
740 int width{editWidth > 0 ? editWidth : totalLength};