/[pcre]/code/trunk/pcrecpp_unittest.cc
ViewVC logotype

Diff of /code/trunk/pcrecpp_unittest.cc

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

revision 326 by ph10, Sat Mar 8 17:24:02 2008 UTC revision 474 by ph10, Sat Jan 2 16:30:46 2010 UTC
# Line 1  Line 1 
1  // -*- coding: utf-8 -*-  // -*- coding: utf-8 -*-
2  //  //
3  // Copyright (c) 2005 - 2006, Google Inc.  // Copyright (c) 2005 - 2010, Google Inc.
4  // All rights reserved.  // All rights reserved.
5  //  //
6  // Redistribution and use in source and binary forms, with or without  // Redistribution and use in source and binary forms, with or without
# Line 268  static void TestReplace() { Line 268  static void TestReplace() {
268        "bb",        "bb",
269        "bbbbbb",        "bbbbbb",
270        "bb",        "bb",
271        "bb",        "bbbb",
272        1 },        2 },
273      { "b*",      { "b*",
274        "bb",        "bb",
275        "aaaaa",        "aaaaa",
# Line 294  static void TestReplace() { Line 294  static void TestReplace() {
294        "bbaa\r\naa\r\n",        "bbaa\r\naa\r\n",
295        "bbabbabb\r\nbbabbabb\r\nbb",        "bbabbabb\r\nbbabbabb\r\nbb",
296        7 },        7 },
297        // Check empty-string matching (it's tricky!)
298        { "aa|b*",
299          "@",
300          "aa",
301          "@",
302          "@@",
303          2 },
304        { "b*|aa",
305          "@",
306          "aa",
307          "@aa",
308          "@@@",
309          3 },
310  #ifdef SUPPORT_UTF8  #ifdef SUPPORT_UTF8
311      { "b*",      { "b*",
312        "bb",        "bb",

Legend:
Removed from v.326  
changed lines
  Added in v.474

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12