Close

Relief for ODA Team in Ukraine

Learn more
ODA IFC SDK
OdDAI::Utils::stringLike Function
Syntax
C++
DAI_EXPORT Logical stringLike(const char * targetString, const char * patternString);

Compares two string values using the pattern matching algorithm and evaluates result of comparison to a logical value.

Parameters
Description
targetString
A string that should tested.
patternString
A string that contains pattern.

Logical::True if targetString matches pattern, or Logical::False if targetString doesn't match pattern; or Logical::Unknown otherwise, e.g. if pattern is incorrect and can not be parsed.

Pattern matching characters table: @ Matches any letter ^ Matches any upper case letter ? Matches any character & Matches remainder of string

  • Matches any digit

$ Matches a substring terminated by a space character or end-of-string

  • Matches any number of characters (including letters and digits)

Begins a pattern escape sequence (for pattern matching characters compare, '@' LIKE '@' = TRUE) ! Negation character (used with the other characters)

File: daiUtils.h 

Namespace: OdDAI::Utils 

Copyright © 2002-2022. Open Design Alliance All rights reserved.