~ubuntu-branches/debian/sid/adabrowse/sid

« back to all changes in this revision

Viewing changes to util-text-internal.ads

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Brenta
  • Date: 2004-02-14 13:22:40 UTC
  • Revision ID: james.westby@ubuntu.com-20040214132240-cqumhiq1677pkvzo
Tags: upstream-4.0.2
ImportĀ upstreamĀ versionĀ 4.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-------------------------------------------------------------------------------
 
2
--
 
3
--  <STRONG>Copyright &copy; 2001, 2002 by Thomas Wolf.</STRONG>
 
4
--  <BLOCKQUOTE>
 
5
--    This piece of software is free software; you can redistribute it and/or
 
6
--    modify it under the terms of the  GNU General Public License as published
 
7
--    by the Free Software  Foundation; either version 2, or (at your option)
 
8
--    any later version. This software is distributed in the hope that it will
 
9
--    be useful, but <EM>without any warranty</EM>; without even the implied
 
10
--    warranty of <EM>merchantability or fitness for a particular purpose.</EM>
 
11
--    See the GNU General Public License for  more details. You should have
 
12
--    received a copy of the GNU General Public License with this distribution,
 
13
--    see file "<A HREF="GPL.txt">GPL.txt</A>". If not, write to the Free
 
14
--    Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
 
15
--    USA.
 
16
--  </BLOCKQUOTE>
 
17
--  <BLOCKQUOTE>
 
18
--    As a special exception from the GPL, if other files instantiate generics
 
19
--    from this unit, or you link this unit with other files to produce an
 
20
--    executable, this unit does not by itself cause the resulting executable
 
21
--    to be covered by the GPL. This exception does not however invalidate any
 
22
--    other reasons why the executable file might be covered by the GPL.
 
23
--  </BLOCKQUOTE>
 
24
--
 
25
--  <AUTHOR>
 
26
--    Thomas Wolf  (TW) <E_MAIL>
 
27
--  </AUTHOR>
 
28
--
 
29
--  <PURPOSE>
 
30
--    Direct access to the internal string buffer.
 
31
--  </PURPOSE>
 
32
--
 
33
--  <NOT_TASK_SAFE>
 
34
--
 
35
--  <STORAGE>
 
36
--    Dynamic storage allocation in the default pool.
 
37
--  </STORAGE>
 
38
--
 
39
--  <HISTORY>
 
40
--    07-JUN-2002   TW  Initial version.
 
41
--  </HISTORY>
 
42
-------------------------------------------------------------------------------
 
43
 
 
44
pragma License (Modified_GPL);
 
45
 
 
46
package Util.Text.Internal is
 
47
 
 
48
   pragma Elaborate_Body;
 
49
 
 
50
   function Get_Ptr
 
51
     (Source : in Unbounded_String)
 
52
     return String_Access;
 
53
   --  Lower bound is 1.
 
54
 
 
55
   procedure Set_Ptr
 
56
     (Source : in out Unbounded_String;
 
57
      Ptr    : in     String_Access);
 
58
   --  This is highly unsafe. @Ptr.all@ must be dynamically allocated; its
 
59
   --  lower index must be 1. Neither is checked.
 
60
 
 
61
private
 
62
 
 
63
   pragma Inline (Get_Ptr, Set_Ptr);
 
64
 
 
65
end Util.Text.Internal;