Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Some CultureInfo fixes for String.Format. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
5c8311fbd4412c7b237bdcafa7cdb66e |
User & Date: | mistachkin 2015-08-12 22:32:20.603 |
Context
2015-08-12
| ||
22:33 | When building for Mono, target the .NET Framework 4.5.x, not 4.6. check-in: ce51a749e0 user: mistachkin tags: trunk | |
22:32 | Some CultureInfo fixes for String.Format. check-in: 5c8311fbd4 user: mistachkin tags: trunk | |
22:25 | Fix typo in the previous check-in. check-in: ea0c351664 user: mistachkin tags: trunk | |
Changes
Changes to System.Data.SQLite/SQLiteEnlistment.cs.
︙ | ︙ | |||
92 93 94 95 96 97 98 | // NOTE: When in "strict" mode, throw an exception if the isolation // level is not recognized; otherwise, fallback to the default // isolation level specified by the caller. // if (throwOnUnsupported) { throw new InvalidOperationException( | | | 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | // NOTE: When in "strict" mode, throw an exception if the isolation // level is not recognized; otherwise, fallback to the default // isolation level specified by the caller. // if (throwOnUnsupported) { throw new InvalidOperationException( UnsafeNativeMethods.StringFormat(CultureInfo.CurrentCulture, "unsupported isolation level {0}", isolationLevel)); } return defaultIsolationLevel; } /////////////////////////////////////////////////////////////////////////// |
︙ | ︙ |
Changes to System.Data.SQLite/SQLiteException.cs.
︙ | ︙ | |||
180 181 182 183 184 185 186 | /// <returns>Error message text for the return code.</returns> private static string GetStockErrorMessage( SQLiteErrorCode errorCode, string message ) { return UnsafeNativeMethods.StringFormat( | | | 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | /// <returns>Error message text for the return code.</returns> private static string GetStockErrorMessage( SQLiteErrorCode errorCode, string message ) { return UnsafeNativeMethods.StringFormat( CultureInfo.CurrentCulture, "{0}{1}{2}", GetErrorString(errorCode), #if !NET_COMPACT_20 Environment.NewLine, message).Trim(); #else "\r\n", message).Trim(); #endif |
︙ | ︙ |
Changes to System.Data.SQLite/SQLiteModule.cs.
︙ | ︙ | |||
6854 6855 6856 6857 6858 6859 6860 | protected virtual string GetFunctionKey( int argumentCount, string name, SQLiteFunction function ) { return UnsafeNativeMethods.StringFormat( | | | 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 | protected virtual string GetFunctionKey( int argumentCount, string name, SQLiteFunction function ) { return UnsafeNativeMethods.StringFormat( CultureInfo.InvariantCulture, "{0}:{1}", argumentCount, name); } #endregion /////////////////////////////////////////////////////////////////////// #region Table Declaration Helper Methods |
︙ | ︙ |
Changes to System.Data.SQLite/SQLiteModuleCommon.cs.
︙ | ︙ | |||
21 22 23 24 25 26 27 | #region Private Constants /// <summary> /// The CREATE TABLE statement used to declare the schema for the /// virtual table. /// </summary> private static readonly string declareSql = UnsafeNativeMethods.StringFormat( | | | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #region Private Constants /// <summary> /// The CREATE TABLE statement used to declare the schema for the /// virtual table. /// </summary> private static readonly string declareSql = UnsafeNativeMethods.StringFormat( CultureInfo.InvariantCulture, "CREATE TABLE {0}(x);", typeof(SQLiteModuleCommon).Name); #endregion /////////////////////////////////////////////////////////////////////// #region Private Data /// <summary> |
︙ | ︙ |
Changes to System.Data.SQLite/UnsafeNativeMethods.cs.
︙ | ︙ | |||
128 129 130 131 132 133 134 | /// This type is only present when running on Mono. /// </summary> private static readonly string MonoRuntimeType = "Mono.Runtime"; /// <summary> /// Keeps track of whether we are running on Mono. Initially null, it is /// set by the <see cref="IsMono" /> method on its first call. Later, it | | | 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | /// This type is only present when running on Mono. /// </summary> private static readonly string MonoRuntimeType = "Mono.Runtime"; /// <summary> /// Keeps track of whether we are running on Mono. Initially null, it is /// set by the <see cref="IsMono" /> method on its first call. Later, it /// is returned verbatim by the <see cref="IsMono" /> method. /// </summary> private static bool? isMono = null; /// <summary> /// Determines whether or not this assembly is running on Mono. /// </summary> /// <returns> |
︙ | ︙ |