/[pcre]/code/trunk/doc/html/pcrecpp.html
ViewVC logotype

Diff of /code/trunk/doc/html/pcrecpp.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 582 by ph10, Tue Mar 17 21:30:30 2009 UTC revision 583 by ph10, Tue Jan 11 16:49:55 2011 UTC
# Line 282  is defined in the pcrecpp namespace. Line 282  is defined in the pcrecpp namespace.
282    Example: read lines of the form "var = value" from a string.    Example: read lines of the form "var = value" from a string.
283       string contents = ...;                 // Fill string somehow       string contents = ...;                 // Fill string somehow
284       pcrecpp::StringPiece input(contents);  // Wrap in a StringPiece       pcrecpp::StringPiece input(contents);  // Wrap in a StringPiece
285  </PRE>  
 </P>  
 <P>  
 <pre>  
286       string var;       string var;
287       int value;       int value;
288       pcrecpp::RE re("(\\w+) = (\\d+)\n");       pcrecpp::RE re("(\\w+) = (\\d+)\n");

Legend:
Removed from v.582  
changed lines
  Added in v.583

  ViewVC Help
Powered by ViewVC 1.1.5