Blender V5.3
blender::nodes::StringPattern Class Reference

#include <NOD_string_pattern.hh>

Public Member Functions

bool match (StringRef query) const
std::optional< StringRef > exact_pattern () const
StringRef full_pattern () const

Static Public Member Functions

static std::optional< StringPattern > from_str (StringPatternMode mode, StringRef pattern, std::string &r_error)

Detailed Description

A predicate for strings. A pattern can be created and then other strings can be tested against it.

Definition at line 30 of file NOD_string_pattern.hh.

Member Function Documentation

◆ exact_pattern()

std::optional< StringRef > blender::nodes::StringPattern::exact_pattern ( ) const
inline

Sometimes things can be implemented more efficiently when there is an exact pattern.

Definition at line 73 of file NOD_string_pattern.hh.

Referenced by blender::nodes::node_geo_remove_attribute_cc::node_geo_exec(), and blender::nodes::node_geo_remove_attribute_cc::remove_attributes().

◆ from_str()

◆ full_pattern()

StringRef blender::nodes::StringPattern::full_pattern ( ) const
inline

Definition at line 81 of file NOD_string_pattern.hh.

◆ match()

bool blender::nodes::StringPattern::match ( StringRef query) const

Returns true if the string matches the pattern.

Definition at line 57 of file string_pattern.cc.

Referenced by blender::nodes::node_geo_remove_attribute_cc::remove_attributes(), and blender::nodes::node_geo_transfer_attributes_cc::should_transfer().


The documentation for this class was generated from the following files: