MCPcopy Create free account
hub / github.com/Dobiasd/FunctionalPlus / split_lines

Function split_lines

include/fplus/string_tools.hpp:71–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69// split_lines(false, "Hi,\nhow are you?") == ["Hi,", "How are you"]
70template <typename String, typename ContainerOut = std::vector<String>>
71ContainerOut split_lines(bool allowEmpty, const String& str)
72{
73 return split_by(is_line_break<String>, allowEmpty, clean_newlines(str));
74}
75
76// API search type: trim_whitespace_left : String -> String
77// fwd bind count: 0

Callers 7

gemstone_countFunction · 0.50
gemstone_count_fwd_applyFunction · 0.50

Calls 2

split_byFunction · 0.70
clean_newlinesFunction · 0.70

Tested by 2

gemstone_countFunction · 0.40
gemstone_count_fwd_applyFunction · 0.40