MCPcopy Create free account
hub / github.com/MariaDB/server / my_tospace

Function my_tospace

sql/sql_load.cc:1951–1955  ·  view source on GitHub ↗

@brief Convert newline, linefeed, tab to space @param chr character @details According to the "XML 1.0" standard, only space (#x20) characters, carriage returns, line feeds or tabs are considered as spaces. Convert all of them to space (#x20) for parsing simplicity. */

Source from the content-addressed store, hash-verified

1949 Convert all of them to space (#x20) for parsing simplicity.
1950*/
1951static int
1952my_tospace(int chr)
1953{
1954 return (chr == '\t' || chr == '\r' || chr == '\n') ? ' ' : chr;
1955}
1956
1957
1958/*

Callers 2

read_valueMethod · 0.85
read_xmlMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected