~ubuntu-branches/debian/lenny/fpc/lenny

« back to all changes in this revision

Viewing changes to rtl/objpas/sysutils/sysansi.inc

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-05-17 17:12:11 UTC
  • mfrom: (3.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080517171211-9qi33xhd9evfa0kg
Tags: 2.2.0-dfsg1-9
[ Torsten Werner ]
* Add Mazen Neifer to Uploaders field.

[ Mazen Neifer ]
* Moved FPC sources into a version dependent directory from /usr/share/fpcsrc
  to /usr/share/fpcsrc/${FPCVERSION}. This allow installing more than on FPC
  release.
* Fixed far call issue in compiler preventing building huge binearies.
  (closes: #477743)
* Updated building dependencies, recomennded and suggested packages.
* Moved fppkg to fp-utils as it is just a helper tool and is not required by
  compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{
2
 
    *********************************************************************
3
 
    $Id: sysansi.inc,v 1.2 2003/11/26 22:17:42 michael Exp $
4
 
    Copyright (C) 2002 by Florian Klaempfl
5
 
 
6
 
    This program is free software; you can redistribute it and/or modify
7
 
    it under the terms of the GNU General Public License as published by
8
 
    the Free Software Foundation; either version 2 of the License, or
9
 
    (at your option) any later version.
10
 
 
11
 
    This program is distributed in the hope that it will be useful,
12
 
    but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
    GNU General Public License for more details.
15
 
 
16
 
    You should have received a copy of the GNU General Public License
17
 
    along with this program; if not, write to the Free Software
18
 
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
 
    *********************************************************************
20
 
}
21
 
 
22
 
Function AnsiCompareFileName(const S1, S2: string): Integer;
23
 
 
24
 
begin
25
 
  If FileNameCaseSensitive then
26
 
    Result:=AnsiCompareStr(S1,S2) // Compare case sensitive
27
 
  else  
28
 
    Result:=AnsiCompareText(S1,S2); // Compare case insensitive. No MBCS yet.
29
 
end;
30
 
 
31
 
Function SameFileName(const S1, S2: string): Boolean;
32
 
 
33
 
begin
34
 
  Result:=AnsiCompareFileName(S1,S2)=0;
35
 
end;
36
 
 
37
 
Function AnsiLowerCaseFileName(const S: string): string;
38
 
 
39
 
begin
40
 
  Result:=AnsiLowerCase(S); // No locale support or MBCS yet.
41
 
end;
42
 
 
43
 
Function AnsiUpperCaseFileName(const S: string): string;
44
 
 
45
 
begin
46
 
  Result:=AnsiUpperCase(S); // No locale support or MBCS yet.
47
 
end;
48
 
 
49
 
Function AnsiPos(const Substr, S: string): Integer;
50
 
 
51
 
begin
52
 
  Result:=Pos(Substr,S); // No MBCS yet.
53
 
end;
54
 
 
55
 
Function AnsiStrPos(Str, SubStr: PChar): PChar;
56
 
 
57
 
begin
58
 
  Result:=StrPos(Str,Substr);
59
 
end;
60
 
 
61
 
Function AnsiStrRScan(Str: PChar; Chr: Char): PChar;
62
 
 
63
 
begin
64
 
  Result:=StrRScan(Str,Chr);
65
 
end;
66
 
 
67
 
Function AnsiStrScan(Str: PChar; Chr: Char): PChar;
68
 
 
69
 
begin
70
 
  Result:=StrScan(Str,Chr);
71
 
end;
72
 
 
73
 
{
74
 
  $Log: sysansi.inc,v $
75
 
  Revision 1.2  2003/11/26 22:17:42  michael
76
 
  + Merged fixbranch fixes, missing in main branch
77
 
 
78
 
  Revision 1.1  2003/10/06 21:01:06  peter
79
 
    * moved classes unit to rtl
80
 
 
81
 
  Revision 1.1  2002/10/07 19:43:24  florian
82
 
    + empty prototypes for the AnsiStr* multi byte functions added
83
 
}