Lines Matching defs:from
53 AString::AString(const String8 &from)
57 setTo(from.string(), from.length());
60 AString::AString(const AString &from)
64 setTo(from, 0, from.size());
67 AString::AString(const AString &from, size_t offset, size_t n)
71 setTo(from, offset, n);
78 AString &AString::operator=(const AString &from) {
79 if (&from != this) {
80 setTo(from, 0, from.size());
107 void AString::setTo(const AString &from, size_t offset, size_t n) {
108 CHECK(&from != this);
111 setTo(from.mData + offset, n);
191 void AString::append(const AString &from) {
192 append(from.c_str(), from.size());
195 void AString::append(const AString &from, size_t offset, size_t n) {
196 append(from.c_str() + offset, n);
274 void AString::insert(const AString &from, size_t insertionPos) {
275 insert(from.c_str(), from.size(), insertionPos);
278 void AString::insert(const char *from, size_t size, size_t insertionPos) {
293 memcpy(&mData[insertionPos], from, size);