Trailing-Edge
-
PDP-10 Archives
-
bb-h138f-bm
-
7-sources/chmbegsen.bli
There are 11 other files named chmbegsen.bli in the archive. Click here to see a list.
%TITLE 'CHMBEGSEN - find the beginning of a sentence'
MODULE CHMBEGSEN ( ! Find the beginning of a sentence
IDENT = '1-003' ! File: CHMBEGSEN.BLI Edit: JBS1003
) =
BEGIN
!COPYRIGHT (c) DIGITAL EQUIPMENT CORPORATION 1981, 1988. ALL RIGHTS RESERVED.
!
!THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED AND COPIED ONLY
!IN ACCORDANCE WITH THE TERMS OF SUCH LICENSE AND WITH THE INCLUSION OF
!THE ABOVE COPYRIGHT NOTICE. THIS SOFTWARE OR ANY OTHER COPIES THEREOF MAY
!NOT BE PROVIDED OR OTHERWISE MADE AVAILABLE TO ANY OTHER PERSON. NO TITLE
!TO AND OWNERSHIP OF THE SOFTWARE IS HEREBY TRANSFERRED.
!
!THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT NOTICE AND
!SHOULD NOT BE CONSTRUED AS A COMMITMENT BY DIGITAL EQUIPMENT CORPORATION.
!
!DIGITAL ASSUMES NO RESPONSIBILITY FOR THE USE OR RELIABILITY OF ITS
!SOFTWARE ON EQUIPMENT THAT IS NOT SUPPLIED BY DIGITAL.
!
!
!++
! FACILITY: EDT -- The DEC Standard Editor
!
! ABSTRACT:
!
! This module finds the beginning of a sentence.
!
! ENVIRONMENT: Runs at any access mode - AST reentrant
!
! AUTHOR: Bob Kushlis, CREATION DATE: Unknown
!
! MODIFIED BY:
!
! 1-001 - Original. DJS 04-Feb-1981. This module was created by
! extracting the routine EDT$$FND_BSEN from module CHANGE.BLI.
! 1-002 - Regularize headers. JBS 27-Feb-1981
! 1-003 - Fix module name. JBS 02-Mar-1981
!--
%SBTTL 'Declarations'
!
! TABLE OF CONTENTS:
!
REQUIRE 'EDTSRC:TRAROUNAM';
FORWARD ROUTINE
EDT$$FND_BSEN : NOVALUE; ! Find the beginning of a sentence
!
! INCLUDE FILES:
!
REQUIRE 'EDTSRC:EDTREQ';
!
! MACROS:
!
! NONE
!
!EQUATED SYMBOLS:
!
! NONE
!
! OWN STORAGE:
!
! NONE
!
! EXTERNAL REFERENCES:
!
! In the routine
%SBTTL 'EDT$$FND_BSEN - find the beginning of a sentence'
GLOBAL ROUTINE EDT$$FND_BSEN ! Find the beginning of a sentence
: NOVALUE =
!++
! FUNCTIONAL DESCRIPTION:
!
! Find the beginning of a sentence. Scan backwards until we find
! a sentence delimiter, then include forward over the delimiter and
! the <CR> or all spaces.
!
! FORMAL PARAMETERS:
!
! NONE
!
! IMPLICIT INPUTS:
!
! NONE
!
! IMPLICIT OUTPUTS:
!
! NONE
!
! ROUTINE VALUE:
!
! NONE
!
! SIDE EFFECTS:
!
! NONE
!
!--
BEGIN
EXTERNAL ROUTINE
EDT$$CS_LEFT, ! Move left a character
EDT$$FND_SENDLIM; ! Look for a sentence delimiter
!+
! Scan back to a delimiter.
!-
DO
BEGIN
IF ( NOT EDT$$CS_LEFT ()) THEN RETURN;
END
UNTIL EDT$$FND_SENDLIM (1);
END;
END
ELUDOM