Blender Git Loki

Git Commits -> Revision aafbe11

Revision aafbe11 by Sybren A. Stüvel (master)
September 27, 2021, 16:10 (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: aafbe111fc90876d801135f0dc5e01e9742f647a
Parent Commit: 6578db5
Lines Changed: +55, -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 (+23, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021