mirror of
https://github.com/nasa/fprime.git
synced 2026-04-12 05:19:03 -05:00
* Backport replacement of EightyCharacterString with Fw::String * Remove test usage of 80 charater strings
28 lines
624 B
C++
28 lines
624 B
C++
#include <Utils/Hash/Hash.hpp>
|
|
|
|
namespace Utils {
|
|
|
|
const char* Hash ::
|
|
getFileExtensionString()
|
|
{
|
|
return HASH_EXTENSION_STRING;
|
|
}
|
|
|
|
void Hash ::
|
|
addFileExtension(
|
|
const Fw::StringBase& baseName,
|
|
Fw::StringBase& extendedName
|
|
) {
|
|
extendedName.format("%s%s", baseName.toChar(), HASH_EXTENSION_STRING);
|
|
}
|
|
|
|
NATIVE_UINT_TYPE Hash ::
|
|
getFileExtensionLength()
|
|
{
|
|
// Size of returns the size including the '\0' character.
|
|
// We want to return just the size of the string.
|
|
return sizeof(HASH_EXTENSION_STRING) - 1;
|
|
}
|
|
|
|
}
|