Made is_truncated available for all configurations

This commit is contained in:
John Wellbelove 2025-04-12 15:04:21 +01:00
parent 520bcf876b
commit 73308ede00
11 changed files with 4969 additions and 4985 deletions

View File

@ -245,7 +245,6 @@ namespace etl
return max_size() - size();
}
#if ETL_HAS_STRING_TRUNCATION_CHECKS
//*************************************************************************
/// Returns whether the string was truncated by the last operation.
/// Deprecated. Use is_truncated()
@ -254,7 +253,11 @@ namespace etl
ETL_DEPRECATED
bool truncated() const
{
#if ETL_HAS_STRING_TRUNCATION_CHECKS
return flags.test<IS_TRUNCATED>();
#else
return false;
#endif
}
//*************************************************************************
@ -263,9 +266,14 @@ namespace etl
//*************************************************************************
bool is_truncated() const
{
#if ETL_HAS_STRING_TRUNCATION_CHECKS
return flags.test<IS_TRUNCATED>();
#else
return false;
#endif
}
#if ETL_HAS_STRING_TRUNCATION_CHECKS
//*************************************************************************
/// Clears the 'truncated' flag.
//*************************************************************************

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff