MCPcopy Create free account
hub / github.com/apache/impala / CleanStringLineEndings

Function CleanStringLineEndings

be/src/gutil/strings/escaping.cc:1950–1960  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1948// (2) if yes, removes any CR, else convert every CR to LF
1949
1950void CleanStringLineEndings(const string& src, string* dst,
1951 bool auto_end_last_line) {
1952 if (dst->empty()) {
1953 dst->append(src);
1954 CleanStringLineEndings(dst, auto_end_last_line);
1955 } else {
1956 string tmp = src;
1957 CleanStringLineEndings(&tmp, auto_end_last_line);
1958 dst->append(tmp);
1959 }
1960}
1961
1962void CleanStringLineEndings(string* str, bool auto_end_last_line) {
1963 int output_pos = 0;

Callers

nothing calls this directly

Calls 8

string_as_arrayFunction · 0.85
UNALIGNED_LOAD64Function · 0.85
UNALIGNED_STORE64Function · 0.85
resizeMethod · 0.80
emptyMethod · 0.45
appendMethod · 0.45
sizeMethod · 0.45
operator[]Method · 0.45

Tested by

no test coverage detected