Lines Matching +defs:from +defs:end
23 in this Software without prior written authorization from The Open Group.
1171 * Must walk the selection list in opposite order from UnsetSelection.
1228 _DeleteOrKill(TextWidget ctx, XawTextPosition from, XawTextPosition to,
1239 if (kill && from < to) {
1243 XawTextPosition old_from = from;
1266 salt->s.left = from;
1269 string = (char *)_XawTextGetSTRING(ctx, from, to);
1297 if (from >= old_from) {
1347 if (_XawTextReplace(ctx, from, to, &text)) {
1352 ctx->text.insertPos = from;
1360 XawTextPosition from, to;
1378 * This causes the character position at the very beginning and end of
1386 from = to;
1390 from = ctx->text.insertPos;
1392 _DeleteOrKill(ctx, from, to, kill);
1992 XawTextPosition end = ctx->text.lastPos, buf[32];
2024 rlen = (unsigned)(llen + (ctx->text.lastPos - end));
2331 XawTextPosition from, to, tmp, end = 0, *pos, *posbuf[32];
2350 if (!GetBlockBoundaries(ctx, &from, &to)) {
2357 llen = (unsigned)(to - from);
2358 end = ctx->text.lastPos;
2359 lbuf = _XawTextGetText(ctx, from, to);
2364 if (!Untabify(ctx, from, to, pos, (int)src->textSrc.num_text, NULL)) {
2376 tmp = from;
2402 tmp = from;
2414 tmp = from;
2432 Tabify(ctx, from, to, pos, (int)src->textSrc.num_text, NULL);
2435 unsigned rlen = (unsigned)(llen + (ctx->text.lastPos - end));
2438 rbuf = _XawTextGetText(ctx, from, from + rlen);
2445 _XawTextReplace(ctx, from, from + rlen, &text);
2450 _XawTextReplace(ctx, from, from + llen, &text);
3057 XawTextPosition from, to;
3108 from = ctx->text.insertPos;
3113 to = from + mult;
3114 tmp = SrcScan(ctx->text.source, from, XawstEOL, XawsdRight, 1, False);
3120 to = from;
3122 error = _XawTextReplace(ctx, from , to, &text);
3287 * and the inputPos advances to the insertion's end.
3350 /* Advance insertPos to the end of the string we just inserted. */
3380 XrmValue from, to;
3381 from.size = (unsigned)strlen(from.addr = (char*)params[0]);
3382 XtConvert(w, XtRString, &from, XtRBoolean, &to);
3520 /* StripOutOldCRs() - called from FormRegion
3522 * removes CRs in widget ctx, from from to to.
3527 StripOutOldCRs(TextWidget ctx, XawTextPosition from, XawTextPosition to,
3551 eop_begin = eop_end = startPos = from;
3632 /* InsertNewCRs() - called from FormRegion
3636 InsertNewCRs(TextWidget ctx, XawTextPosition from, XawTextPosition to,
3657 startPos = from;
3732 FormRegion(TextWidget ctx, XawTextPosition from, XawTextPosition to,
3740 if (from >= to)
3750 Untabify(ctx, from, to, pos, num_pos, NULL);
3752 (void)BlankLine((Widget)ctx, from, &inc);
3753 if (from + inc >= to)
3756 if (!StripSpaces(ctx, from + inc, to, pos, num_pos, NULL))
3759 FormatText(ctx, from, ctx->text.justify != XawjustifyFull, pos, num_pos);
3763 if ((to = StripOutOldCRs(ctx, from, to, pos, num_pos)) == XawReplaceError)
3765 InsertNewCRs(ctx, from, to, pos, num_pos);
3818 XawTextPosition from, to;
3822 from = SrcScan(ctx->text.source,
3834 from = to = ctx->text.insertPos;
3836 /* find from position */
3839 tmp = from;
3840 from = SrcScan(ctx->text.source, from, XawstEOL, XawsdLeft,
3842 XawTextSourceRead(ctx->text.source, from, &block, 1);
3852 BlankLine((Widget)ctx, from, NULL)) {
3853 from = tmp;
3856 if (from == tmp && !first)
3889 from = SrcScan(ctx->text.source, ctx->text.insertPos, XawstEOL,
3891 if (BlankLine((Widget)ctx, from, NULL))
3893 from = SrcScan(ctx->text.source, from, XawstParagraph,
3895 if (BlankLine((Widget)ctx, from, NULL))
3896 from = SrcScan(ctx->text.source, from, XawstEOL,
3898 to = SrcScan(ctx->text.source, from, XawstParagraph,
3902 if (from < to) {
3903 *from_return = from;
3920 XawTextPosition from, to, buf[32], *pos;
3941 if (!GetBlockBoundaries(ctx, &from, &to)) {
3949 lbuf = _XawTextGetText(ctx, from, to);
3953 if (FormRegion(ctx, from, to, pos, (int)src->textSrc.num_text) == XawReplaceError) {
3957 from = SrcScan(ctx->text.source, ctx->text.insertPos,
3959 to = SrcScan(ctx->text.source, from,
3962 if (FormRegion(ctx, from, to, pos, 1) == XawReplaceError) {
3978 llen = (unsigned)(to - from);
3984 rbuf = _XawTextGetText(ctx, from, from + rlen);
3990 _XawTextReplace(ctx, from, from + rlen, &block);
3995 _XawTextReplace(ctx, from, from + llen, &block);
4033 XawTextPosition start, end;
4049 end = SrcScan(ctx->text.source, ctx->text.insertPos, XawstPositions,
4052 /* Make sure we aren't at the very beginning or end of the buffer. */
4054 if (start == ctx->text.insertPos || end == ctx->text.insertPos) {
4061 ctx->text.insertPos = end;
4071 wbuf = (wchar_t*)_XawTextGetText(ctx, start, end);
4082 buf = _XawTextGetText(ctx, start, end);
4094 if (_XawTextReplace (ctx, start, end, &text))
4332 {"end-of-line", MoveToLineEnd},
4338 {"end-of-file", MoveEndOfFile},
4354 {"kill-to-end-of-line", KillToEndOfLine},
4355 {"kill-to-end-of-paragraph", KillToEndOfParagraph},
4367 {"select-end", SelectEnd},
4371 {"extend-end", ExtendEnd},