Radiant:
menus... * help+: Blendmodes cheatsheet misc... * fix treemodel Clang compilation * fix: 1x1 textures crash and appearence * fix of: create func static in non doom3 gametype = group entity w/o objects * merged tex bro textures borders; stipple indicates shaders * realigned tex bro text, so one doesn't collide with textures borders * fix of texture focusing in tex bro * grayscale RLE TGA support * unsupported Doom 3 entity keys: popup->log warning * patch inspector: +flip texture buttons * disabled texture lock by default (confuses novices, suddenly) * added MeshTex plugin src to project, compiled, fixed (works now-)
This commit is contained in:
@@ -141,6 +141,13 @@ inline bool string_equal_prefix( const char* string, const char* prefix ){
|
||||
return string_equal_n( string, prefix, string_length( prefix ) );
|
||||
}
|
||||
|
||||
/// \brief Returns true if the ending of \p string is equal to \p suffix.
|
||||
/// O(n)
|
||||
inline bool string_equal_suffix( const char* string, const char* suffix){
|
||||
const char *s = string + string_length( string ) - string_length( suffix );
|
||||
return string_equal_n( s , suffix, string_length( suffix ) );
|
||||
}
|
||||
|
||||
/// \brief Copies \p other into \p string and returns \p string.
|
||||
/// Assumes that the space allocated for \p string is at least string_length(other) + 1.
|
||||
/// O(n)
|
||||
|
||||
Reference in New Issue
Block a user