OxL Справочник OxL
РусскийEnglish

method Captures.whole

The whole match.

Example:

oxl✓ проверяется в CI
fn main() io {
  let c = Regex.compile("a(b)")!.captures("xab")!
  print("{c.whole().text} {c.whole().start}")
}
Вывод
ab 1
pub(api) fn whole() -> Match

С версии. 1.0.0-beta

Возвращает

Match

Эффекты

не объявлены (чистая, пока тело не говорит иное)

Определено в: std/core/text.oxl:1157

См. также