diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /util/generic/string.pxd | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/string.pxd')
-rw-r--r-- | util/generic/string.pxd | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/util/generic/string.pxd b/util/generic/string.pxd index c25f7392a1..0f3fb1c7fe 100644 --- a/util/generic/string.pxd +++ b/util/generic/string.pxd @@ -1,5 +1,5 @@ from libcpp.string cimport string as _std_string - + cdef extern from "<util/generic/strbuf.h>" nogil: cdef cppclass TStringBuf: @@ -13,9 +13,9 @@ cdef extern from "<util/generic/strbuf.h>" nogil: cdef extern from "<util/generic/string.h>" nogil: - + size_t npos "TString::npos" - + # Inheritance is bogus, but it's safe to assume TString is-a TStringBuf via implicit cast cdef cppclass TString(TStringBuf): TString() except + @@ -31,88 +31,88 @@ cdef extern from "<util/generic/string.h>" nogil: TString(TStringBuf&) except + TString(TStringBuf&, TStringBuf&) except + TString(TStringBuf&, TStringBuf&, TStringBuf&) except + - - const char* c_str() - size_t max_size() - size_t length() + + const char* c_str() + size_t max_size() + size_t length() void resize(size_t) except + void resize(size_t, char c) except + - size_t capacity() + size_t capacity() void reserve(size_t) except + void clear() except + - bint empty() - - char& at(size_t) - char& operator[](size_t) + bint empty() + + char& at(size_t) + char& operator[](size_t) int compare(TStringBuf&) - + TString& append(TStringBuf&) except + TString& append(TStringBuf&, size_t, size_t) except + TString& append(char *) except + TString& append(char *, size_t) except + TString& append(size_t, char) except + - + void push_back(char c) except + - + TString& assign(TStringBuf&) except + TString& assign(TStringBuf&, size_t, size_t) except + TString& assign(char *) except + TString& assign(char *, size_t) except + - + TString& insert(size_t, TString&) except + TString& insert(size_t, TString&, size_t, size_t) except + TString& insert(size_t, char* s) except + TString& insert(size_t, char* s, size_t) except + TString& insert(size_t, size_t, char c) except + - + size_t copy(char *, size_t) except + size_t copy(char *, size_t, size_t) except + - + size_t find(TStringBuf&) size_t find(TStringBuf&, size_t pos) size_t find(char) - size_t find(char, size_t pos) - + size_t find(char, size_t pos) + size_t rfind(TStringBuf&) size_t rfind(TStringBuf&, size_t pos) size_t rfind(char) size_t rfind(char, size_t pos) - - size_t find_first_of(char c) + + size_t find_first_of(char c) size_t find_first_of(char c, size_t pos) size_t find_first_of(TStringBuf& set) size_t find_first_of(TStringBuf& set, size_t pos) - - size_t find_first_not_of(char c) + + size_t find_first_not_of(char c) size_t find_first_not_of(char c, size_t pos) size_t find_first_not_of(TStringBuf& set) size_t find_first_not_of(TStringBuf& set, size_t pos) - - size_t find_last_of(char c) + + size_t find_last_of(char c) size_t find_last_of(char c, size_t pos) size_t find_last_of(TStringBuf& set) size_t find_last_of(TStringBuf& set, size_t pos) - + TString substr(size_t pos) except + TString substr(size_t pos, size_t n) except + - + TString operator+(TStringBuf& rhs) except + TString operator+(char* rhs) except + - + bint operator==(TStringBuf&) - bint operator==(char*) - + bint operator==(char*) + bint operator!=(TStringBuf&) bint operator!=(char*) - + bint operator<(TStringBuf&) bint operator<(char*) - + bint operator>(TStringBuf&) bint operator>(char*) - + bint operator<=(TStringBuf&) bint operator<=(char*) - + bint operator>=(TStringBuf&) bint operator>=(char*) |