-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement processing loaded translations
- Loading branch information
Showing
14 changed files
with
145 additions
and
155 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// ExpressionPatternType.swift | ||
// Swifternalization | ||
// | ||
// Created by Tomasz Szulc on 21/07/15. | ||
// Copyright (c) 2015 Tomasz Szulc. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
/// Supported expression types | ||
enum ExpressionPatternType: String { | ||
/// works on Int only, e.g. `x<5`, `x=3` | ||
case Inequality = "ie" | ||
|
||
/// works on Int only, e.g. `4<x<10`, `1<=x<18` | ||
case InequalityExtended = "iex" | ||
|
||
/// regular expression, e.g. `[02-9]+` | ||
case Regex = "exp" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,9 @@ | ||
// | ||
// ExpressionPatternType.swift | ||
// Swifternalization | ||
// | ||
// Created by Tomasz Szulc on 21/07/15. | ||
// Copyright (c) 2015 Tomasz Szulc. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
/// Supported expression types | ||
enum ExpressionPatternType: String { | ||
/// works on Int only, e.g. `x<5`, `x=3` | ||
case Inequality = "ie" | ||
|
||
/// works on Int only, e.g. `4<x<10`, `1<=x<18` | ||
case InequalityExtended = "iex" | ||
|
||
/// regular expression, e.g. `[02-9]+` | ||
case Regex = "exp" | ||
} | ||
/** | ||
Represents expressions in the framework. | ||
*/ | ||
protocol ExpressionType { | ||
/// Pattern of expression. | ||
var pattern: String {get} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,12 @@ | ||
import Foundation | ||
|
||
/** | ||
Struct that represents length variation. | ||
Length variation representation. | ||
*/ | ||
struct LengthVariation: LengthVariationType { | ||
/// Length - width of a screen. | ||
let length: Int | ||
|
||
/// localized string. | ||
let value: String | ||
|
||
/// Create length variation object. | ||
init(length: Int, value: String) { | ||
self.length = length | ||
self.value = value | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// LengthVariationExpression.swift | ||
// Swifternalization | ||
// | ||
// Created by Tomasz Szulc on 30/07/15. | ||
// Copyright (c) 2015 Tomasz Szulc. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
/** | ||
Represents expression that contains length variations. | ||
*/ | ||
struct LengthVariationExpression: ExpressionType { | ||
/// Pattern of expression. | ||
let pattern: String | ||
|
||
/// Array with length variations. | ||
let variations: [LengthVariation] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters