~ubuntu-branches/ubuntu/hardy/ocaml-doc/hardy

« back to all changes in this revision

Viewing changes to ocaml.html/manual037.html

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2007-09-08 01:49:22 UTC
  • mfrom: (0.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070908014922-lvihyehz0ndq7suu
Tags: 3.10-1
* New upstream release.
* Removed camlp4 documentation since it is not up-to-date.
* Updated to standards version 3.7.2, no changes needed.
* Updated my email address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
<HTML>
4
4
<HEAD>
5
5
 
6
 
 
7
 
 
8
6
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
9
 
<META name="GENERATOR" content="hevea 1.08">
 
7
<META name="GENERATOR" content="hevea 1.09">
10
8
<LINK rel="stylesheet" type="text/css" href="manual.css">
11
 
<TITLE>
12
 
The str library: regular expressions and string processing
13
 
</TITLE>
 
9
<TITLE>The str library: regular expressions and string processing</TITLE>
14
10
</HEAD>
15
11
<BODY >
16
 
<A HREF="manual036.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
17
 
<A HREF="index.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
18
 
<A HREF="manual038.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
 
12
<A HREF="manual036.html"><IMG SRC="previous_motif.gif" ALT="Previous"></A>
 
13
<A HREF="index.html"><IMG SRC="contents_motif.gif" ALT="Up"></A>
 
14
<A HREF="manual038.html"><IMG SRC="next_motif.gif" ALT="Next"></A>
19
15
<HR>
20
 
 
21
 
<H1 CLASS="chapter"><A NAME="htoc255">Chapter&nbsp;23</A>&nbsp;&nbsp;The str library: regular expressions and string processing</H1>
22
 
 
23
 
The <TT>str</TT> library provides high-level string processing functions,
 
16
<H1 CLASS="chapter"><A NAME="htoc255">Chapter�23</A>��The str library: regular expressions and string processing</H1><P>The <TT>str</TT> library provides high-level string processing functions,
24
17
some based on regular expressions. It is intended to support the kind
25
18
of file processing that is usually performed with scripting languages
26
 
such as <TT>awk</TT>, <TT>perl</TT> or <TT>sed</TT>.<BR>
27
 
<BR>
28
 
Programs that use the <TT>str</TT> library must be linked as follows:
29
 
<PRE>
 
19
such as <TT>awk</TT>, <TT>perl</TT> or <TT>sed</TT>.</P><P>Programs that use the <TT>str</TT> library must be linked as follows:
 
20
</P><PRE>
30
21
        ocamlc <I>other options</I> str.cma <I>other files</I>
31
22
        ocamlopt <I>other options</I> str.cmxa <I>other files</I>
32
 
</PRE>
 
23
</PRE><P>
33
24
For interactive use of the <TT>str</TT> library, do:
34
 
<PRE>
 
25
</P><PRE>
35
26
        ocamlmktop -o mytop str.cma
36
27
        ./mytop
37
 
</PRE>
 
28
</PRE><P>
38
29
or (if dynamic linking of C libraries is supported on your platform),
39
 
start <TT>ocaml</TT> and type <TT>#load "str.cma";;</TT>.<BR>
40
 
<BR>
41
 
 
42
 
<a HREF="libref/Str.html"> Module <tt>Str</tt>: regular expressions and string processing</a>
43
 
<BR>
44
 
<BR>
45
 
 
46
 
<BR>
47
 
<BR>
48
 
<HR>
49
 
<A HREF="manual036.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
50
 
<A HREF="index.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
51
 
<A HREF="manual038.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
 
30
start <TT>ocaml</TT> and type <TT>#load "str.cma";;</TT>.</P><UL CLASS="ftoc2"><LI CLASS="li-links">
 
31
<A HREF="libref/Str.html">Module <TT>Str</TT>: regular expressions and string processing</A>
 
32
</LI></UL><HR>
 
33
<A HREF="manual036.html"><IMG SRC="previous_motif.gif" ALT="Previous"></A>
 
34
<A HREF="index.html"><IMG SRC="contents_motif.gif" ALT="Up"></A>
 
35
<A HREF="manual038.html"><IMG SRC="next_motif.gif" ALT="Next"></A>
52
36
</BODY>
53
37
</HTML>