Lines Matching refs:string
21 #include <string>
81 std::string format_str;
92 pybind11_fail(std::string("NumPy type info missing for ") + tinfo.name());
450 // If info.itemsize == 0, use the value calculated from the format string
454 explicit dtype(const std::string &format) {
458 dtype(const char *format) : dtype(std::string(format)) { }
771 void fail_dim_check(ssize_t dim, const std::string& msg) const {
813 throw index_error(std::string("index ") + std::to_string(i) +
950 static std::string format() {
956 static std::string format() { return std::to_string(N) + "s"; }
959 static std::string format() { return std::to_string(N) + "s"; }
964 static std::string format() {
972 static std::string format() {
1054 static pybind11::dtype dtype() { return pybind11::dtype(std::string("S") + std::to_string(N)); }
1085 std::string format;
1107 pybind11_fail(std::string("NumPy: unsupported field dtype: `") +
1116 // not encoded explicitly into the format string. This will supposedly
1141 // Sanity check: verify that NumPy properly parses our buffer format string
1161 static std::string format() {