mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
feat: add tr_strbuf (#2810)
* feat: add tr_strbuf class for building tmp strings Based on fmt::basic_memory_buf, this is a growable string buffer that has an initial size that's large enough to build most filenames or URLs without needing heap allocations. Adds a couple of extra helpers such as a `c_str()` method to make dealing with old zero-terminated string APIs easier.
This commit is contained in:
@@ -344,6 +344,7 @@
|
||||
C1305EBE186A13B100F03351 /* file.cc in Sources */ = {isa = PBXBuildFile; fileRef = C1305EB8186A134000F03351 /* file.cc */; };
|
||||
C1425B361EE9C605001DB85F /* tr-assert.h in Headers */ = {isa = PBXBuildFile; fileRef = C1425B331EE9C5EA001DB85F /* tr-assert.h */; };
|
||||
C1425B371EE9C705001DB85F /* tr-macros.h in Headers */ = {isa = PBXBuildFile; fileRef = C1425B341EE9C5EA001DB85F /* tr-macros.h */; };
|
||||
888A256631B3DE536FEB8B00 /* tr-strbuf.h in Headers */ = {isa = PBXBuildFile; fileRef = 888A256631B3DE536FEB8B01 /* tr-strbuf.h */; };
|
||||
C1425B381EE9C805001DB85F /* peer-socket.h in Headers */ = {isa = PBXBuildFile; fileRef = C1425B351EE9C5EA001DB85F /* peer-socket.h */; };
|
||||
C1639A741A55F4E000E42033 /* libb64.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C1639A6F1A55F4D600E42033 /* libb64.a */; };
|
||||
C1639A781A55F56600E42033 /* cdecode.c in Sources */ = {isa = PBXBuildFile; fileRef = C1639A761A55F56600E42033 /* cdecode.c */; };
|
||||
@@ -1070,6 +1071,7 @@
|
||||
C1425B321EE9C5EA001DB85F /* tr-assert.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = "tr-assert.cc"; sourceTree = "<group>"; };
|
||||
C1425B331EE9C5EA001DB85F /* tr-assert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "tr-assert.h"; sourceTree = "<group>"; };
|
||||
C1425B341EE9C5EA001DB85F /* tr-macros.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "tr-macros.h"; sourceTree = "<group>"; };
|
||||
888A256631B3DE536FEB8B01 /* tr-strbuf.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "tr-macros.h"; sourceTree = "<group>"; };
|
||||
C1425B351EE9C5EA001DB85F /* peer-socket.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "peer-socket.h"; sourceTree = "<group>"; };
|
||||
C1639A6F1A55F4D600E42033 /* libb64.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libb64.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
C1639A761A55F56600E42033 /* cdecode.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = cdecode.c; path = src/cdecode.c; sourceTree = "<group>"; };
|
||||
@@ -1542,6 +1544,7 @@
|
||||
A22CFCA60FC24ED80009BD3E /* tr-dht.cc */,
|
||||
A22CFCA70FC24ED80009BD3E /* tr-dht.h */,
|
||||
C1425B341EE9C5EA001DB85F /* tr-macros.h */,
|
||||
888A256631B3DE536FEB8B01 /* tr-strbuf.h */,
|
||||
C1425B351EE9C5EA001DB85F /* peer-socket.h */,
|
||||
A284214212DA663E00FBDDBB /* tr-udp.cc */,
|
||||
A284214312DA663E00FBDDBB /* tr-udp.h */,
|
||||
@@ -2067,6 +2070,7 @@
|
||||
BEFC1E3B0C07861A00B0BB3C /* platform.h in Headers */,
|
||||
C1425B361EE9C605001DB85F /* tr-assert.h in Headers */,
|
||||
C1425B371EE9C705001DB85F /* tr-macros.h in Headers */,
|
||||
888A256631B3DE536FEB8B00 /* tr-strbuf.h in Headers */,
|
||||
C1425B381EE9C805001DB85F /* peer-socket.h in Headers */,
|
||||
BEFC1E450C07861A00B0BB3C /* net.h in Headers */,
|
||||
BEFC1E4D0C07861A00B0BB3C /* session.h in Headers */,
|
||||
|
||||
Reference in New Issue
Block a user