~ubuntu-branches/ubuntu/lucid/fpc/lucid-proposed

« back to all changes in this revision

Viewing changes to fpcsrc/packages/palmunits/src/stringmgr.pp

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-10-09 23:29:00 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20081009232900-553f61m37jkp6upv
Tags: 2.2.2-4
[ Torsten Werner ]
* Update ABI version in fpc-depends automatically.
* Remove empty directories from binary package fpc-source.

[ Mazen Neifer ]
* Removed leading path when calling update-alternatives to remove a Linitian
  error.
* Fixed clean target.
* Improved description of packages. (Closes: #498882)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
(******************************************************************************
 
2
 *
 
3
 * Copyright (c) 1994-2000 Palm, Inc. or its subsidiaries.
 
4
 * All rights reserved.
 
5
 *
 
6
 * File: StringMgr.h
 
7
 *
 
8
 * Release: Palm OS SDK 4.0 (63220)
 
9
 *
 
10
 * Description:
 
11
 *    String manipulation functions
 
12
 *
 
13
 * History:
 
14
 *    11/09/94 RM    Created by Ron Marianetti
 
15
 *    08/26/98 kwk   Changed chr param in StrChr to WChar (was Int16)
 
16
 *    07/16/99 kwk   Added maxStrIToALen.
 
17
 *    05/14/00 vsm   Added StrCompareAscii.
 
18
 *    08/18/00 kwk   Added StrNCompareAscii.
 
19
 *
 
20
 *****************************************************************************)
 
21
 
 
22
unit stringmgr;
 
23
 
 
24
interface
 
25
 
 
26
uses palmos,coretraps;
 
27
 
 
28
// Max length of string returned by StrIToA, for -2147483647, plus space
 
29
// for the terminating null.
 
30
const
 
31
  maxStrIToALen = 12;
 
32
 
 
33
// String Manipulation routines
 
34
function StrCopy(dst: PChar; const src: PChar): PChar; syscall sysTrapStrCopy;
 
35
 
 
36
function StrNCopy(dst: PChar; const src: PChar; n: Int16): PChar; syscall sysTrapStrNCopy;
 
37
 
 
38
function StrCat(dst: PChar; const src: PChar): PChar; syscall sysTrapStrCat;
 
39
 
 
40
function StrNCat(dst: PChar; const src: PChar; n: Int16): PChar; syscall sysTrapStrNCat;
 
41
 
 
42
function StrLen(const src: PChar): Int16; syscall sysTrapStrLen;
 
43
 
 
44
function StrCompareAscii(const s1, s2: PChar): Int16; syscall sysTrapStrCompareAscii;
 
45
 
 
46
function StrCompare(const s1, s2: PChar): Int16; syscall sysTrapStrCompare;
 
47
 
 
48
function StrNCompareAscii(const s1, s2: PChar; n: Int32): Int16; syscall sysTrapStrNCompareAscii;
 
49
 
 
50
function StrNCompare(const s1, s2: PChar;n: Int32): Int16; syscall sysTrapStrNCompare;
 
51
 
 
52
function StrCaselessCompare(const s1, s2: PChar): Int16; syscall sysTrapStrCaselessCompare;
 
53
 
 
54
function StrNCaselessCompare(const s1, s2: PChar; n: Int32): Int16; syscall sysTrapStrNCaselessCompare;
 
55
 
 
56
function StrToLower(dst: PChar; const src: PChar): PChar; syscall sysTrapStrToLower;
 
57
 
 
58
function StrIToA(s: PChar; i: Int32): PChar; syscall sysTrapStrIToA;
 
59
 
 
60
function StrIToH(s: PChar; i: UInt32): PChar; syscall sysTrapStrIToH;
 
61
 
 
62
function StrLocalizeNumber(s: PChar; thousandSeparator, decimalSeparator: Char): PChar; syscall sysTrapStrLocalizeNumber;
 
63
 
 
64
function StrDelocalizeNumber(s: PChar; thousandSeparator, decimalSeparator: Char): PChar; syscall sysTrapStrDelocalizeNumber;
 
65
 
 
66
function StrChr(const str: PChar; chr: WChar): PChar; syscall sysTrapStrChr;
 
67
 
 
68
function StrStr(const str, token: PChar): PChar; syscall sysTrapStrStr;
 
69
 
 
70
function StrAToI(const str: PChar): Int32; syscall sysTrapStrAToI;
 
71
 
 
72
//function StrPrintF(s: PChar; const Char *formatStr, ...): Int16; syscall sysTrapStrPrintF;
 
73
 
 
74
function StrVPrintF(s: PChar; const formatStr: PChar; arg: PChar): Int16; syscall sysTrapStrVPrintF;
 
75
 
 
76
implementation
 
77
 
 
78
end.