mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Fix typos.
This commit is contained in:
@@ -25,7 +25,7 @@ public extension NSWindow {
|
||||
|
||||
func setPointAndSizeAdjustingForScreen(point: NSPoint, size: NSSize, minimumSize: NSSize) {
|
||||
|
||||
// point.y specifices from the *top* of the screen, even though screen coordinates work from the bottom up. This is for convenience.
|
||||
// point.y specifies from the *top* of the screen, even though screen coordinates work from the bottom up. This is for convenience.
|
||||
// The eventual size may be smaller than requested, since the screen may be small, but not smaller than minimumSize.
|
||||
|
||||
guard let screenFrame = screen?.visibleFrame else {
|
||||
|
||||
@@ -42,7 +42,7 @@ public extension String {
|
||||
self.data(using: .utf8)!.md5Hash
|
||||
}
|
||||
|
||||
/// A hexadecimal representaion of an MD5 hash of the string's UTF-8 representation.
|
||||
/// A hexadecimal representation of an MD5 hash of the string's UTF-8 representation.
|
||||
var md5String: String {
|
||||
self.md5Hash.hexadecimalString!
|
||||
}
|
||||
@@ -299,7 +299,7 @@ public extension String {
|
||||
///
|
||||
/// - Parameter string: The string to search for.
|
||||
///
|
||||
/// - Returns: `true` if the string contains `string`; `false` otherswise.
|
||||
/// - Returns: `true` if the string contains `string`; `false` otherwise.
|
||||
func caseInsensitiveContains(_ string: String) -> Bool {
|
||||
return self.range(of: string, options: .caseInsensitive) != nil
|
||||
}
|
||||
|
||||
@@ -28,8 +28,8 @@ class MacroProcessorTests: XCTestCase {
|
||||
result = try! MacroProcessor.renderedText(withTemplate: template, substitutions: substitutions)
|
||||
XCTAssertEqual(result, expected)
|
||||
|
||||
// Nonexistant key
|
||||
template = "foo [[nonexistant]] bar"
|
||||
// Nonexistent key
|
||||
template = "foo [[nonexistent]] bar"
|
||||
expected = template
|
||||
result = try! MacroProcessor.renderedText(withTemplate: template, substitutions: substitutions)
|
||||
XCTAssertEqual(result, expected)
|
||||
|
||||
@@ -267,7 +267,7 @@ static int FMDBDatabaseBusyHandler(void *f, int count) {
|
||||
|
||||
// we no longer make busyRetryTimeout public
|
||||
// but for folks who don't bother noticing that the interface to FMDatabase changed,
|
||||
// we'll still implement the method so they don't get suprise crashes
|
||||
// we'll still implement the method so they don't get surprise crashes
|
||||
- (int)busyRetryTimeout {
|
||||
NSLog(@"%s:%d", __FUNCTION__, __LINE__);
|
||||
NSLog(@"FMDB: busyRetryTimeout no longer works, please use maxBusyRetryTimeInterval");
|
||||
|
||||
@@ -74,23 +74,23 @@ return ret;
|
||||
}
|
||||
|
||||
/*
|
||||
get table with list of tables: result colums: type[STRING], name[STRING],tbl_name[STRING],rootpage[INTEGER],sql[STRING]
|
||||
get table with list of tables: result columns: type[STRING], name[STRING],tbl_name[STRING],rootpage[INTEGER],sql[STRING]
|
||||
check if table exist in database (patch from OZLB)
|
||||
*/
|
||||
- (FMResultSet*)getSchema {
|
||||
|
||||
//result colums: type[STRING], name[STRING],tbl_name[STRING],rootpage[INTEGER],sql[STRING]
|
||||
//result columns: type[STRING], name[STRING],tbl_name[STRING],rootpage[INTEGER],sql[STRING]
|
||||
FMResultSet *rs = [self executeQuery:@"SELECT type, name, tbl_name, rootpage, sql FROM (SELECT * FROM sqlite_master UNION ALL SELECT * FROM sqlite_temp_master) WHERE type != 'meta' AND name NOT LIKE 'sqlite_%' ORDER BY tbl_name, type DESC, name"];
|
||||
|
||||
return rs;
|
||||
}
|
||||
|
||||
/*
|
||||
get table schema: result colums: cid[INTEGER], name,type [STRING], notnull[INTEGER], dflt_value[],pk[INTEGER]
|
||||
get table schema: result columns: cid[INTEGER], name,type [STRING], notnull[INTEGER], dflt_value[],pk[INTEGER]
|
||||
*/
|
||||
- (FMResultSet*)getTableSchema:(NSString*)tableName {
|
||||
|
||||
//result colums: cid[INTEGER], name,type [STRING], notnull[INTEGER], dflt_value[],pk[INTEGER]
|
||||
//result columns: cid[INTEGER], name,type [STRING], notnull[INTEGER], dflt_value[],pk[INTEGER]
|
||||
FMResultSet *rs = [self executeQuery:[NSString stringWithFormat: @"pragma table_info('%@')", tableName]];
|
||||
|
||||
return rs;
|
||||
|
||||
Reference in New Issue
Block a user