Blender Git Loki

Git Commits -> Revision 058d218

Revision 058d218 by Jacques Lucke (master)
September 12, 2019, 14:55 (GMT)
BLI: new StringRef and StringRefNull data structures

These two data structures reference strings somewhere in memory.
They do not own the referenced string. The string is considered
const.

A string referenced by StringRefNull can be expected to be
null-terminated. That is not the case for StringRef.

This commit is a continuation of rB369d5e8ad2bb7c2.

Commit Details:

Full Hash: 058d218254418c1ae681b4b9e5c8a9be93ad69b3
Parent Commit: 914f430
Lines Changed: +476, -0

2 Added Paths:

/source/blender/blenlib/BLI_string_ref.h (+244, -0) (View)
/tests/gtests/blenlib/BLI_string_ref_test.cc (+230, -0) (View)

2 Modified Paths:

/source/blender/blenlib/CMakeLists.txt (+1, -0) (Diff)
/tests/gtests/blenlib/CMakeLists.txt (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021