Reformatted some whitespace for alignment in all language versions.

pull/39/merge
Project Nayuki 6 years ago
parent 3e642cf468
commit 957219dc91

@ -117,8 +117,8 @@ testable const int8_t NUM_ERROR_CORRECTION_BLOCKS[4][41] = {
}; };
// For automatic mask pattern selection. // For automatic mask pattern selection.
static const int PENALTY_N1 = 3; static const int PENALTY_N1 = 3;
static const int PENALTY_N2 = 3; static const int PENALTY_N2 = 3;
static const int PENALTY_N3 = 40; static const int PENALTY_N3 = 40;
static const int PENALTY_N4 = 10; static const int PENALTY_N4 = 10;

@ -536,8 +536,8 @@ bool QrCode::getBit(long x, int i) {
/*---- Tables of constants ----*/ /*---- Tables of constants ----*/
const int QrCode::PENALTY_N1 = 3; const int QrCode::PENALTY_N1 = 3;
const int QrCode::PENALTY_N2 = 3; const int QrCode::PENALTY_N2 = 3;
const int QrCode::PENALTY_N3 = 40; const int QrCode::PENALTY_N3 = 40;
const int QrCode::PENALTY_N4 = 10; const int QrCode::PENALTY_N4 = 10;

@ -707,8 +707,8 @@ public final class QrCode {
/*---- Private tables of constants ----*/ /*---- Private tables of constants ----*/
// For use in getPenaltyScore(), when evaluating which mask is best. // For use in getPenaltyScore(), when evaluating which mask is best.
private static final int PENALTY_N1 = 3; private static final int PENALTY_N1 = 3;
private static final int PENALTY_N2 = 3; private static final int PENALTY_N2 = 3;
private static final int PENALTY_N3 = 40; private static final int PENALTY_N3 = 40;
private static final int PENALTY_N4 = 10; private static final int PENALTY_N4 = 10;

@ -641,8 +641,8 @@ var qrcodegen = new function() {
/*---- Private tables of constants for QrCode ----*/ /*---- Private tables of constants for QrCode ----*/
// For use in getPenaltyScore(), when evaluating which mask is best. // For use in getPenaltyScore(), when evaluating which mask is best.
QrCode.PENALTY_N1 = 3; QrCode.PENALTY_N1 = 3;
QrCode.PENALTY_N2 = 3; QrCode.PENALTY_N2 = 3;
QrCode.PENALTY_N3 = 40; QrCode.PENALTY_N3 = 40;
QrCode.PENALTY_N4 = 10; QrCode.PENALTY_N4 = 10;

@ -530,8 +530,8 @@ class QrCode(object):
# ---- Private tables of constants ---- # ---- Private tables of constants ----
# For use in getPenaltyScore(), when evaluating which mask is best. # For use in getPenaltyScore(), when evaluating which mask is best.
_PENALTY_N1 = 3 _PENALTY_N1 = 3
_PENALTY_N2 = 3 _PENALTY_N2 = 3
_PENALTY_N3 = 40 _PENALTY_N3 = 40
_PENALTY_N4 = 10 _PENALTY_N4 = 10

@ -681,8 +681,8 @@ pub const QrCode_MAX_VERSION: Version = Version(40);
/*---- Private tables of constants ----*/ /*---- Private tables of constants ----*/
// For use in get_penalty_score(), when evaluating which mask is best. // For use in get_penalty_score(), when evaluating which mask is best.
const PENALTY_N1: i32 = 3; const PENALTY_N1: i32 = 3;
const PENALTY_N2: i32 = 3; const PENALTY_N2: i32 = 3;
const PENALTY_N3: i32 = 40; const PENALTY_N3: i32 = 40;
const PENALTY_N4: i32 = 10; const PENALTY_N4: i32 = 10;

@ -611,8 +611,8 @@ namespace qrcodegen {
// For use in getPenaltyScore(), when evaluating which mask is best. // For use in getPenaltyScore(), when evaluating which mask is best.
private static readonly PENALTY_N1: int = 3; private static readonly PENALTY_N1: int = 3;
private static readonly PENALTY_N2: int = 3; private static readonly PENALTY_N2: int = 3;
private static readonly PENALTY_N3: int = 40; private static readonly PENALTY_N3: int = 40;
private static readonly PENALTY_N4: int = 10; private static readonly PENALTY_N4: int = 10;

Loading…
Cancel
Save