about summary refs log tree commit diff
path: root/library/std/src/ffi/c_str.rs
AgeCommit message (Expand)AuthorLines
2024-07-29Reformat `use` declarations.Nicholas Nethercote-13/+8
2024-02-22Add std::ffi::c_str modulesltdk-0/+19
2022-04-14library: Move `CStr` to libcore, and `CString` to liballocVadim Petrochenkov-1680/+0
2022-03-18add CStr::from_bytes_until_nulEric Seppanen-0/+69
2022-03-10Use implicit capture syntax in format_argsT-O-R-U-S-2/+2
2022-02-19Rollup merge of #93979 - SUPERCILEX:debug_check, r=dtolnayMatthias Krüger-12/+29
2022-02-17Rollup merge of #89869 - kpreid:from-doc, r=yaahcMatthias Krüger-0/+11
2022-02-16Add debug asserts to validate NUL terminator in c stringsAlex Saveau-12/+29
2022-02-07Auto merge of #87869 - thomcc:skinny-io-error, r=yaahcbors-1/+1
2022-02-06rewrite from_bytes_with_nul to match code style in from_vec_with_nulInteon-7/+8
2022-02-04Hide Repr details from io::Error, and rework `io::Error::new_const`.Thom Chiovoloni-1/+1
2022-01-20Correct docs in `Arc` and `Rc`.Jakob Degen-2/+4
2021-12-27Little improves in CString `new` when creating from sliceAngelicosPhosphoros-22/+45
2021-12-13Stabilize const_cstr_uncheckedKonrad Borowski-1/+1
2021-12-04Add documentation to more `From::from` implementations.Kevin Reid-0/+11
2021-10-30Add #[must_use] to remaining std functions (A-N)John Kugelman-0/+3
2021-10-27Add tracking issue number to const_cstr_uncheckedKonrad Borowski-1/+1
2021-10-22Auto merge of #90007 - xfix:inline-cstr-from-str, r=kennytmbors-0/+1
2021-10-20stabilize CString::from_vec_with_nul[_unchecked]Nathan Stocks-12/+8
2021-10-18Inline CStr::from_ptrKonrad Borowski-0/+1
2021-10-13Rollup merge of #89794 - jkugelman:must-use-to_value-conversions, r=joshtriplettYuki Okushi-0/+6
2021-10-12Rollup merge of #89778 - jkugelman:must-use-as_type-conversions, r=joshtriplettthe8472-0/+5
2021-10-11Add #[must_use] to to_value conversionsJohn Kugelman-0/+6
2021-10-11Add #[must_use] to as_type conversionsJohn Kugelman-0/+5
2021-10-11Rollup merge of #89753 - jkugelman:must-use-from_value-conversions, r=joshtri...Guillaume Gomez-0/+5
2021-10-10Add #[must_use] to conversions that move selfJohn Kugelman-1/+7
2021-10-10Add #[must_use] to from_value conversionsJohn Kugelman-0/+5
2021-09-28Clarify that `CString::from_vec_unchecked` appends 0 byte.et342-0/+2
2021-09-25Auto merge of #88343 - steffahn:fix_code_spacing, r=jyn514bors-33/+31
2021-09-25Apply 16 commits (squashed)Frank Steffahn-33/+31
2021-09-15docs(std): add docs for cof_from_cstr implsMichael Howell-0/+3
2021-08-24Fix typo “a Rc” → “an Rc”Frank Steffahn-1/+1
2021-08-22Fix more “a”/“an” typosFrank Steffahn-1/+1
2021-08-22Fix typos “a”→“an”Frank Steffahn-2/+2
2021-05-26Add inline attr to private CString::into_innerElichai Turkel-0/+1
2021-05-20Rollup merge of #85275 - CDirkx:memchr, r=m-ou-seGuillaume Gomez-1/+1
2021-05-18Add diagnostic item to `CStr`Mateusz Gacek-0/+1
2021-05-14Move `std::memchr` to `sys_common`Christiaan Dirkx-1/+1
2021-05-02Change 'NULL' to 'null'Brent Kerby-1/+1
2021-03-29ffi::c_str smaller as_bytesklensy-2/+4
2021-03-21Use io::Error::new_const everywhere to avoid allocations.Mara Bos-1/+1
2021-02-25Convert primitives to use intra-doc linksJoshua Nelson-4/+2
2021-01-13Update tests for extern block lintingMark Rousskov-7/+7
2020-11-19Bump bootstrap compiler versionJake Goulding-1/+1
2020-10-26Fix bootstrap doctest failureNathan Whitaker-1/+1
2020-10-26Address review commentsNathan Whitaker-1/+0
2020-10-26Address review commentsNathan Whitaker-0/+2
2020-10-26Change to warn by default / fix typoNathan Whitaker-1/+1
2020-10-26Update doctestNathan Whitaker-1/+1
2020-10-15Deny broken intra-doc links in linkcheckerJoshua Nelson-1/+2