Skip to content

std::String::prefix_length<T>

prefix_length<T>

Returns the length of the initial segment of str consisting of characters in chars

Template Parameters

  • T

Signature

fn prefix_length(str: const *T, chars: const *T, exclude: bool = false) -> usize requires <T>;

Specifiers

  • constexpr
  • inline