OpenOCD
sb_chars()
is only used within OpenOCD.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
CodeScope
Development Tools
OpenOCD
sb_chars()
sb_chars() function
Returns the utf8 character length of the buffer. Returns 0 for both a NULL buffer and an empty buffer.
Syntax
from
linenoise.c:64
static
inline
int
sb_chars
(
stringbuf
*
sb
)
;
Arguments
sb
References
Location
Referrer
Text
linenoise.c:64
static
inline
int
sb_chars
(
stringbuf
*
sb
)
{
linenoise.c:1063
get_char()
if
(
pos
>=
0
&&
pos
<
sb_chars
(
current
->
buf
)
)
{
linenoise.c:1564
set_current()
current
->
pos
=
sb_chars
(
current
->
buf
)
;
linenoise.c:1575
remove_char()
if
(
pos
>=
0
&&
pos
<
sb_chars
(
current
->
buf
)
)
{
linenoise.c:1588
remove_char()
if
(
current
->
output
&&
current
->
pos
==
pos
+
1
&&
current
->
pos
==
sb_chars
(
current
->
buf
)
&&
pos
>
0
)
{
linenoise.c:1633
insert_char()
if
(
pos
>=
0
&&
pos
<=
sb_chars
(
current
->
buf
)
)
{
linenoise.c:1648
insert_char()
if
(
current
->
output
&&
pos
==
current
->
pos
&&
pos
==
sb_chars
(
current
->
buf
)
)
{
linenoise.c:1683
capture_chars()
if
(
pos
>=
0
&&
(
pos
+
nchars
-
1
)
<
sb_chars
(
current
->
buf
)
)
{
linenoise.c:1863
linenoiseEdit()
if
(
c
==
'\t'
&&
current
->
pos
==
sb_chars
(
current
->
buf
)
&&
completionCallback
!=
NULL
)
{
linenoise.c:1890
linenoiseEdit()
current
->
pos
=
sb_chars
(
current
->
buf
)
;
linenoise.c:1953
linenoiseEdit()
if
(
current
->
pos
>
0
&&
current
->
pos
<=
sb_chars
(
current
->
buf
)
)
{
linenoise.c:1955
linenoiseEdit()
int
fixer
=
(
current
->
pos
==
sb_chars
(
current
->
buf
)
)
;
linenoise.c:1987
linenoiseEdit()
if
(
current
->
pos
<
sb_chars
(
current
->
buf
)
)
{
linenoise.c:2030
linenoiseEdit()
current
->
pos
=
sb_chars
(
current
->
buf
)
;
linenoise.c:2039
linenoiseEdit()
if
(
remove_chars
(
current
,
current
->
pos
,
sb_chars
(
current
->
buf
)
-
current
->
pos
)
)
{
Call Tree
Functions calling
sb_chars()
get_char()
set_current()
remove_char()
insert_char()
capture_chars()
linenoiseEdit()
all items filtered out
sb_chars()
Data read by
sb_chars()
stringbuf::last
sb_chars()::sb
all items filtered out
sb_chars()