StackOverflow Questions for Tag: string-view

dani
dani

Reputation: 3897

How to split a std::string into a range (v3) of std::string_views?

Score: 17

Views: 16892

Answers: 3

Read More
bewilderex63
bewilderex63

Reputation: 437

Is it safe to pass an `std::string` temporary into an `std::string_view` parameter?

Score: 6

Views: 3004

Answers: 4

Read More
echo Lee
echo Lee

Reputation: 341

implicitly convert string to string_view

Score: 7

Views: 34281

Answers: 3

Read More
oliora
oliora

Reputation: 899

Why doesn't std::string have a constructor that directly takes std::string_view?

Score: 21

Views: 1153

Answers: 1

Read More
igel
igel

Reputation: 557

Convert string_view to char* and walk away with it

Score: 0

Views: 333

Answers: 0

Read More
Leon
Leon

Reputation: 2069

How to correctly create std::string from a std::string_view?

Score: 46

Views: 75430

Answers: 3

Read More
Davood
Davood

Reputation: 1566

convert std::uint16_t to std::string_view

Score: 1

Views: 247

Answers: 1

Read More
vss2sn
vss2sn

Reputation: 25

Can `split_view` or a composition of multiple `spilt_view`s be used to split a `string`/`string_view` using multiple delimiters?

Score: 1

Views: 120

Answers: 1

Read More
PavelDev
PavelDev

Reputation: 683

Why does implicit conversion fail when converting a std::basic_string to std::basic_string_view?

Score: 0

Views: 67

Answers: 0

Read More
lobelk
lobelk

Reputation: 502

How to join compile-time string-like objects while keeping the API simple?

Score: 2

Views: 337

Answers: 3

Read More
s3rvac
s3rvac

Reputation: 10329

Why is there no support for concatenating std::string and std::string_view?

Score: 145

Views: 25322

Answers: 2

Read More
h.s.
h.s.

Reputation: 243

Tokenize a string with std::views

Score: 1

Views: 297

Answers: 1

Read More
Chameleon
Chameleon

Reputation: 2147

Why `std::string_view` is not modifiable?

Score: 4

Views: 478

Answers: 1

Read More
kuga
kuga

Reputation: 1765

Correct way to printf() a std::string_view?

Score: 17

Views: 10849

Answers: 4

Read More
razenkovv
razenkovv

Reputation: 23

string_view<uint8_t>

Score: 0

Views: 240

Answers: 1

Read More
Rob Lauer
Rob Lauer

Reputation: 19

Initialize std::list<CustomType> from std::initializer_list<std::string_view> in ctor's member initializer list

Score: 0

Views: 162

Answers: 2

Read More
digito_evo
digito_evo

Reputation: 3682

How to find the first occurring string_view in another string_view?

Score: 0

Views: 230

Answers: 2

Read More
Torsten Knodt
Torsten Knodt

Reputation: 766

How to extract std::string_view tokens from std::ranges::lazy_split_view using >= C++23?

Score: 0

Views: 261

Answers: 1

Read More
Patryk
Patryk

Reputation: 24130

How exactly is std::string_view faster than const std::string&?

Score: 407

Views: 128997

Answers: 5

Read More
Justin Raymond
Justin Raymond

Reputation: 3568

How you convert a std::string_view to a const char*?

Score: 83

Views: 107889

Answers: 3

Read More
PreviousPage 2Next