1 typedef unsigned short PRUint16;
2 typedef PRUint16 PRUnichar;
3 template <class CharT> struct nsCharTraits {
5 class nsAString_internal {
7 typedef PRUnichar char_type;
9 class nsString : public nsAString_internal {
11 typedef nsString self_type;
12 nsString( const self_type& str );
14 class nsDependentString : public nsString {
16 explicit nsDependentString( const char_type* data );
18 typedef struct sqlite3_stmt sqlite3_stmt;
19 const void *sqlite3_column_text16(sqlite3_stmt*, int iCol);
21 template <typename DataType> struct variant_storage_traits {
22 typedef DataType ConstructorType;
23 typedef DataType StorageType;
24 static inline StorageType storage_conversion(ConstructorType aData) {
28 template <typename DataType> class Variant : public nsIVariant {
30 Variant(typename variant_storage_traits<DataType>::ConstructorType aData)
31 : mData(variant_storage_traits<DataType>::storage_conversion(aData)) {}
32 typename variant_storage_traits<DataType>::StorageType mData;
34 typedef Variant<nsString> TextVariant;
36 void initialize(sqlite3_stmt *aStatement);
38 void Row::initialize(sqlite3_stmt *aStatement)
40 nsDependentString str(static_cast<const PRUnichar
41 *>(::sqlite3_column_text16(aStatement, 0)));