Blender Git Loki

Git Commits -> Revision f823834

September 27, 2021, 14:03 (GMT)
BLI Path: add function `BLI_path_contains()`

Add function `BLI_path_contains(container, containee)` that returns true
if and only `container` contains `containee`.

Paths are normalised and converted to native path separators before
comparing. Relative paths are *not* made absolute, to simplify the
function call; if this is necessary the caller has to do this conversion
first.

Commit Details:

Full Hash: f8238344287020e7274ebb6cdaccebcc7581dd4e
Parent Commit: 3d2ce25
Lines Changed: +56, -0

3 Modified Paths:

/source/blender/blenlib/BLI_path_util.h (+4, -0) (Diff)
/source/blender/blenlib/intern/path_util.c (+28, -0) (Diff)
/source/blender/blenlib/tests/BLI_path_util_test.cc (+24, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021