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 |
268 |
"bb", |
"bb", |
269 |
"bbbbbb", |
"bbbbbb", |
270 |
"bb", |
"bb", |
271 |
"bb", |
"bbbb", |
272 |
1 }, |
2 }, |
273 |
{ "b*", |
{ "b*", |
274 |
"bb", |
"bb", |
275 |
"aaaaa", |
"aaaaa", |
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", |