Lines Matching refs:cxxbridge1

7 void cxxbridge1$cxx_string$init(std::string *s, const std::uint8_t *ptr,
12 void cxxbridge1$cxx_string$destroy(std::string *s) noexcept {
17 const char *cxxbridge1$cxx_string$data(const std::string &s) noexcept {
21 std::size_t cxxbridge1$cxx_string$length(const std::string &s) noexcept {
25 void cxxbridge1$cxx_string$clear(std::string &s) noexcept { s.clear(); }
27 void cxxbridge1$cxx_string$reserve_total(std::string &s,
32 void cxxbridge1$cxx_string$push(std::string &s, const std::uint8_t *ptr,
38 void cxxbridge1$string$new(rust::String *self) noexcept;
39 void cxxbridge1$string$clone(rust::String *self,
41 bool cxxbridge1$string$from_utf8(rust::String *self, const char *ptr,
43 void cxxbridge1$string$from_utf8_lossy(rust::String *self, const char *ptr,
45 bool cxxbridge1$string$from_utf16(rust::String *self, const char16_t *ptr,
47 void cxxbridge1$string$from_utf16_lossy(rust::String *self, const char16_t *ptr,
49 void cxxbridge1$string$drop(rust::String *self) noexcept;
50 const char *cxxbridge1$string$ptr(const rust::String *self) noexcept;
51 std::size_t cxxbridge1$string$len(const rust::String *self) noexcept;
52 std::size_t cxxbridge1$string$capacity(const rust::String *self) noexcept;
53 void cxxbridge1$string$reserve_additional(rust::String *self,
55 void cxxbridge1$string$reserve_total(rust::String *self,
59 void cxxbridge1$str$new(rust::Str *self) noexcept;
60 void cxxbridge1$str$ref(rust::Str *self, const rust::String *string) noexcept;
61 bool cxxbridge1$str$from(rust::Str *self, const char *ptr,
63 const char *cxxbridge1$str$ptr(const rust::Str *self) noexcept;
64 std::size_t cxxbridge1$str$len(const rust::Str *self) noexcept;
67 void cxxbridge1$slice$new(void *self, const void *ptr,
69 void *cxxbridge1$slice$ptr(const void *self) noexcept;
70 std::size_t cxxbridge1$slice$len(const void *self) noexcept;
74 inline namespace cxxbridge1 {
94 String::String() noexcept { cxxbridge1$string$new(this); }
97 cxxbridge1$string$clone(this, other);
101 cxxbridge1$string$new(&other);
104 String::~String() noexcept { cxxbridge1$string$drop(this); }
107 if (!cxxbridge1$string$from_utf8(self, s, len)) {
113 if (!cxxbridge1$string$from_utf16(self, s, len)) {
150 cxxbridge1$string$from_utf8_lossy(
156 cxxbridge1$string$from_utf16_lossy(
190 cxxbridge1$string$drop(this);
191 cxxbridge1$string$clone(this, other);
197 cxxbridge1$string$drop(this);
199 cxxbridge1$string$new(&other);
208 return cxxbridge1$string$ptr(this);
212 return cxxbridge1$string$len(this);
216 return cxxbridge1$string$len(this);
223 cxxbridge1$string$reserve_additional(this, 1);
230 return cxxbridge1$string$capacity(this);
234 cxxbridge1$string$reserve_total(this, new_cap);
292 Str::Str() noexcept { cxxbridge1$str$new(this); }
294 Str::Str(const String &s) noexcept { cxxbridge1$str$ref(this, &s); }
297 if (!cxxbridge1$str$from(self, ptr, len)) {
320 const char *Str::data() const noexcept { return cxxbridge1$str$ptr(this); }
322 std::size_t Str::size() const noexcept { return cxxbridge1$str$len(this); }
382 cxxbridge1$slice$new(self, ptr, len);
385 void *slicePtr(const void *self) noexcept { return cxxbridge1$slice$ptr(self); }
388 return cxxbridge1$slice$len(self);
458 const char *cxxbridge1$error(const char *ptr, std::size_t len) noexcept {
518 repr::PtrLen cxxbridge1$exception(const char *, std::size_t len) noexcept;
545 throw$ = cxxbridge1$exception(catch$, std::strlen(catch$));
549 throw$ = cxxbridge1$exception(catch$.data(), catch$.length());
553 } // namespace cxxbridge1
564 void cxxbridge1$unique_ptr$std$string$null(
568 void cxxbridge1$unique_ptr$std$string$raw(std::unique_ptr<std::string> *ptr,
572 const std::string *cxxbridge1$unique_ptr$std$string$get(
576 std::string *cxxbridge1$unique_ptr$std$string$release(
580 void cxxbridge1$unique_ptr$std$string$drop(
595 std::size_t cxxbridge1$std$vector$##RUST_TYPE##$size( \
599 CXX_TYPE *cxxbridge1$std$vector$##RUST_TYPE##$get_unchecked( \
603 void cxxbridge1$unique_ptr$std$vector$##RUST_TYPE##$null( \
607 void cxxbridge1$unique_ptr$std$vector$##RUST_TYPE##$raw( \
613 *cxxbridge1$unique_ptr$std$vector$##RUST_TYPE##$get( \
618 *cxxbridge1$unique_ptr$std$vector$##RUST_TYPE##$release( \
622 void cxxbridge1$unique_ptr$std$vector$##RUST_TYPE##$drop( \
628 void cxxbridge1$std$vector$##RUST_TYPE##$push_back( \
633 void cxxbridge1$std$vector$##RUST_TYPE##$pop_back(std::vector<CXX_TYPE> *v, \
640 void cxxbridge1$rust_vec$##RUST_TYPE##$new( \
642 void cxxbridge1$rust_vec$##RUST_TYPE##$drop( \
644 std::size_t cxxbridge1$rust_vec$##RUST_TYPE##$len( \
646 std::size_t cxxbridge1$rust_vec$##RUST_TYPE##$capacity( \
648 const CXX_TYPE *cxxbridge1$rust_vec$##RUST_TYPE##$data( \
650 void cxxbridge1$rust_vec$##RUST_TYPE##$reserve_total( \
652 void cxxbridge1$rust_vec$##RUST_TYPE##$set_len(rust::Vec<CXX_TYPE> *ptr, \
654 void cxxbridge1$rust_vec$##RUST_TYPE##$truncate(rust::Vec<CXX_TYPE> *ptr, \
660 cxxbridge1$rust_vec$##RUST_TYPE##$new(this); \
664 return cxxbridge1$rust_vec$##RUST_TYPE##$drop(this); \
668 return cxxbridge1$rust_vec$##RUST_TYPE##$len(this); \
672 return cxxbridge1$rust_vec$##RUST_TYPE##$capacity(this); \
676 return cxxbridge1$rust_vec$##RUST_TYPE##$data(this); \
680 cxxbridge1$rust_vec$##RUST_TYPE##$reserve_total(this, new_cap); \
684 cxxbridge1$rust_vec$##RUST_TYPE##$set_len(this, len); \
688 cxxbridge1$rust_vec$##RUST_TYPE##$truncate(this, len); \
694 void cxxbridge1$std$shared_ptr$##RUST_TYPE##$null( \
698 CXX_TYPE *cxxbridge1$std$shared_ptr$##RUST_TYPE##$uninit( \
705 void cxxbridge1$std$shared_ptr$##RUST_TYPE##$clone( \
710 const CXX_TYPE *cxxbridge1$std$shared_ptr$##RUST_TYPE##$get( \
714 void cxxbridge1$std$shared_ptr$##RUST_TYPE##$drop( \
720 void cxxbridge1$std$weak_ptr$##RUST_TYPE##$null( \
724 void cxxbridge1$std$weak_ptr$##RUST_TYPE##$clone( \
729 void cxxbridge1$std$weak_ptr$##RUST_TYPE##$downgrade( \
734 void cxxbridge1$std$weak_ptr$##RUST_TYPE##$upgrade( \
739 void cxxbridge1$std$weak_ptr$##RUST_TYPE##$drop( \
790 inline namespace cxxbridge1 {
792 } // namespace cxxbridge1