Skip to content

Commit a7ed869

Browse files
committed
Add PhTrimStringZ
1 parent 39d44d6 commit a7ed869

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

phlib/include/phbasesup.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,6 +1257,22 @@ PhCreateString3(
12571257
_In_opt_ PPH_STRINGREF TrimCharSet
12581258
);
12591259

1260+
FORCEINLINE
1261+
PPH_STRING
1262+
NTAPI
1263+
PhTrimStringZ(
1264+
_In_ PPH_STRINGREF String,
1265+
_In_ ULONG Flags,
1266+
_In_ PWSTR TrimCharSet
1267+
)
1268+
{
1269+
PH_STRINGREF string;
1270+
1271+
PhInitializeStringRef(&string, TrimCharSet);
1272+
1273+
return PhCreateString3(String, Flags, &string);
1274+
}
1275+
12601276
FORCEINLINE
12611277
WCHAR
12621278
NTAPI

0 commit comments

Comments
 (0)