Function stringIfExists [src]
Prototype
pub fn stringIfExists(self: *const Builder, bytes: []const u8) ?String
Parameters
self: *const Builder
bytes: []const u8
Source
pub fn stringIfExists(self: *const Builder, bytes: []const u8) ?String {
return String.fromIndex(
self.string_map.getIndexAdapted(bytes, String.Adapter{ .builder = self }) orelse return null,
);
}