Browse Source

* Implemented LineStart (sg)

fcl 26 years ago
parent
commit
c4df3c20ae
1 changed files with 9 additions and 2 deletions
  1. 9 2
      fcl/inc/classes.inc

+ 9 - 2
fcl/inc/classes.inc

@@ -298,7 +298,11 @@ end;
 function LineStart(Buffer, BufPos: PChar): PChar;
 function LineStart(Buffer, BufPos: PChar): PChar;
 
 
 begin
 begin
-  LineStart:=nil;
+  Result := BufPos;
+  while Result > Buffer do begin
+    Dec(Result);
+    if Result[0] = #10 then break;
+  end;
 end;
 end;
 
 
 
 
@@ -306,7 +310,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.11  1999-09-11 21:59:31  fcl
+  Revision 1.12  1999-09-30 19:31:42  fcl
+  * Implemented LineStart  (sg)
+
+  Revision 1.11  1999/09/11 21:59:31  fcl
   * Moved class and registration functions to cregist.inc  (sg)
   * Moved class and registration functions to cregist.inc  (sg)
 
 
   Revision 1.10  1999/04/13 08:52:29  michael
   Revision 1.10  1999/04/13 08:52:29  michael