@@ -168,8 +168,8 @@ TEST_CASE(test_j2k_nitf)
168168void writeFile (uint32_t x0, uint32_t y0,
169169 uint32_t x1, uint32_t y1, std::span<const uint8_t > buf, const std::string& prefix)
170170{
171- auto filename = FmtX (" %s-raw-" , prefix);
172- filename += FmtX (" %d_%d__%d_%d.out" , x0, y0, x1, y1);
171+ auto filename = str::Format (" %s-raw-" , prefix);
172+ filename += str::Format (" %d_%d__%d_%d.out" , x0, y0, x1, y1);
173173 nitf::IOHandle outHandle (filename, NRT_ACCESS_WRITEONLY, NRT_CREATE);
174174 outHandle.write (buf.data (), buf.size ());
175175 // printf("Wrote file: %s\n", filename.c_str());
@@ -178,8 +178,8 @@ void writeJ2K(uint32_t x0, uint32_t y0,
178178 uint32_t x1, uint32_t y1, std::span<const uint8_t > buf,
179179 const j2k::Container& inContainer, const std::string& prefix)
180180{
181- auto outName = FmtX (" %s-raw-" , prefix);
182- outName += FmtX (" %d_%d__%d_%d.j2k" , x0, y0, x1, y1);
181+ auto outName = str::Format (" %s-raw-" , prefix);
182+ outName += str::Format (" %d_%d__%d_%d.j2k" , x0, y0, x1, y1);
183183
184184 const auto num_x_tiles = inContainer.getTilesX ();
185185 const auto num_y_tiles = inContainer.getTilesY ();
@@ -273,7 +273,7 @@ void test_j2k_nitf_read_region_(const std::string& testName,
273273 const auto result_ = j2kReader.readRegion (0 , 0 , width, height, buf);
274274 const auto result = sys::make_const_span (result_);
275275
276- const auto namePrefix = FmtX (" image-%d" , (i + 1 ));
276+ const auto namePrefix = str::Format (" image-%d" , (i + 1 ));
277277 // TODO: Update write to only output tiles in read region
278278 writeFile (0 , 0 , width, height, result, namePrefix);
279279 writeJ2K (0 , 0 , width, height, result, container, namePrefix);
0 commit comments