File: t.cc

package info (click to toggle)
libpcre%2B%2B 0.9.5-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,608 kB
  • ctags: 211
  • sloc: sh: 9,165; cpp: 835; makefile: 78
file content (16 lines) | stat: -rw-r--r-- 993 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * momory leak testing
 */

#include "../libpcre++/pcre++.h"
#include <vector>
#include <string>

int main()                                                                                                                  
{                                                                                                                           
        while ( true )                                                                                                      
        {                                                                                                                   
                pcrepp::Pcre r( "\\s*,\\s*", "g" );                                                                         
                std::vector<std::string> splits = r.split( "12,3" );                                                                  
        }                                                                                                                   
}