MCPcopy Index your code
hub / github.com/git/git / strbuf_expand_step

Function strbuf_expand_step

strbuf.c:438–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436}
437
438int strbuf_expand_step(struct strbuf *sb, const char **formatp)
439{
440 const char *format = *formatp;
441 const char *percent = strchrnul(format, '%');
442
443 strbuf_add(sb, format, percent - format);
444 if (!*percent)
445 return 0;
446 *formatp = percent + 1;
447 return 1;
448}
449
450size_t strbuf_expand_literal(struct strbuf *sb, const char *placeholder)
451{

Callers 10

ll_ext_mergeFunction · 0.85
expand_string_argFunction · 0.85
strbuf_addftimeFunction · 0.85
filter_buffer_or_fdFunction · 0.85
path_okFunction · 0.85
show_tree_fmtFunction · 0.85
expand_formatFunction · 0.85
show_ce_fmtFunction · 0.85
quote_literal_for_formatFunction · 0.85

Calls 1

strbuf_addFunction · 0.85

Tested by

no test coverage detected