1 // Copyright 2022 The PDFium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef CORE_FXCRT_FX_STRING_WRAPPERS_H_ 6 #define CORE_FXCRT_FX_STRING_WRAPPERS_H_ 7 8 #include <iosfwd> 9 #include <string> 10 11 #include "core/fxcrt/fx_memory_wrappers.h" 12 13 namespace fxcrt { 14 15 // String that uses partition alloc for backing store. 16 using string = 17 std::basic_string<char, std::char_traits<char>, FxStringAllocator<char>>; 18 19 // String stream that uses PartitionAlloc for backing store. 20 using ostringstream = std:: 21 basic_ostringstream<char, std::char_traits<char>, FxStringAllocator<char>>; 22 23 } // namespace fxcrt 24 25 #endif // CORE_FXCRT_FX_STRING_WRAPPERS_H_ 26