[nostalgia,olympic] Rename string len() functions to size()
This commit is contained in:
@@ -59,7 +59,7 @@ static ox::Error buildUuidMap(Context &ctx, ox::StringViewCR path, DuplicateSet
|
||||
auto const [uuid, err] = readUuidHeader(buff);
|
||||
if (!err) {
|
||||
// check for duplication
|
||||
if (duplicates && ctx.uuidToPath[uuid.toString()].len()) {
|
||||
if (duplicates && ctx.uuidToPath[uuid.toString()].size()) {
|
||||
auto &dl = (*duplicates)[uuid];
|
||||
if (dl.empty()) {
|
||||
dl.emplace_back(ctx.uuidToPath[uuid.toString()]);
|
||||
|
||||
@@ -88,7 +88,7 @@ static ox::Error pack(
|
||||
oxOutf("Final ROM buff size: {} bytes\n", romBuff.size());
|
||||
OX_RETURN_ERROR(writeFileBuff(argRomBin, romBuff));
|
||||
OX_REQUIRE(manifestJson, ox::writeOCString(manifest));
|
||||
OX_RETURN_ERROR(writeFileBuff(argManifest, {manifestJson.data(), manifestJson.len()}));
|
||||
OX_RETURN_ERROR(writeFileBuff(argManifest, {manifestJson.data(), manifestJson.size()}));
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ static std::map<ox::StringView, ox::Error(*)()> tests = {
|
||||
constexpr ox::StringView uuidStr = "8d814442-f46e-4cc3-8edc-ca3c01cc86db";
|
||||
constexpr ox::StringView hdr = "K1;8d814442-f46e-4cc3-8edc-ca3c01cc86db;";
|
||||
OX_REQUIRE(uuid, ox::UUID::fromString(uuidStr));
|
||||
ox::Array<char, hdr.len()> buff;
|
||||
ox::Array<char, hdr.size()> buff;
|
||||
ox::CharBuffWriter bw(buff);
|
||||
OX_RETURN_ERROR(keel::writeUuidHeader(bw, uuid));
|
||||
oxExpect(ox::StringView(buff.data(), buff.size()), hdr);
|
||||
|
||||
Reference in New Issue
Block a user