/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * vim: sw=2 ts=2 et lcs=trail\:.,tab\:>~ : * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
if (::sqlite3_value_type(mArgv[aIndex]) == SQLITE_NULL) { // NULL columns should have IsVoid set to distinguish them from an empty // string.
_value.SetIsVoid(true);
} else {
_value.Assign( reinterpret_cast<constchar*>(::sqlite3_value_text(mArgv[aIndex])),
::sqlite3_value_bytes(mArgv[aIndex]));
} return NS_OK;
}
if (::sqlite3_value_type(mArgv[aIndex]) == SQLITE_NULL) { // NULL columns should have IsVoid set to distinguish them from an empty // string.
_value.SetIsVoid(true);
} else { const char16_t* string = static_cast<const char16_t*>(::sqlite3_value_text16(mArgv[aIndex]));
_value.Assign(string,
::sqlite3_value_bytes16(mArgv[aIndex]) / sizeof(char16_t));
} return NS_OK;
}
NS_IMETHODIMP
ArgValueArray::GetIsNull(uint32_t aIndex, bool* _isNull) { // GetTypeOfIndex will check aIndex for us, so we don't have to.
int32_t type;
nsresult rv = GetTypeOfIndex(aIndex, &type);
NS_ENSURE_SUCCESS(rv, rv);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.