Skip to content

Commit

Permalink
Patch up a careless attribution mass replace
Browse files Browse the repository at this point in the history
  • Loading branch information
kvz committed Jan 26, 2015
1 parent adc9bff commit db7fec5
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions experimental/datetime/timezone_abbreviations_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ function timezone_abbreviations_list() {
// + original by: Brett Zamir (http://brett-zamir.me)
// + input by: ChaosNo1
// + revised by: Theriault
// + improved by: Brett Zamir (http://brett-zamir.me)
// % note 1: original by timezonemap.h from PHP 5.3
// + improved by: Brett Zamir (http://brett-zamir.me)
// % note 1: based on timezonemap.h from PHP 5.3
// * example 1: var list = timezone_abbreviations_list()
// * example 1: list.acst[0].timezone_id
// * returns 1: 'America/Porto_Acre'
Expand Down
2 changes: 1 addition & 1 deletion functions/_phpjs_shared/_phpjs_shared_bc.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ function _phpjs_shared_bc() {
},

/* Recursive divide and conquer multiply algorithm.
original by
based on
Let u = u0 + u1*(b^n)
Let v = v0 + v1*(b^n)
Then uv = (B^2n+B^n)*u1*v1 + B^n*(u1-u0)*(v0-v1) + (B^n+1)*u0*v0
Expand Down
4 changes: 2 additions & 2 deletions functions/array/arsort.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function arsort(inputArr, sort_flags) {
};
break;
case 'SORT_LOCALE_STRING':
// compare items as strings, original by the current locale (set with i18n_loc_set_default() as of PHP6)
// compare items as strings, based on the current locale (set with i18n_loc_set_default() as of PHP6)
var loc = this.i18n_loc_get_default();
sorter = this.php_js.i18nLocales[loc].sorting;
break;
Expand Down Expand Up @@ -102,4 +102,4 @@ function arsort(inputArr, sort_flags) {
}

return strictForIn || populateArr;
}
}
4 changes: 2 additions & 2 deletions functions/array/asort.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function asort(inputArr, sort_flags) {
};
break;
case 'SORT_LOCALE_STRING':
// compare items as strings, original by the current locale (set with i18n_loc_set_default() as of PHP6)
// compare items as strings, based on the current locale (set with i18n_loc_set_default() as of PHP6)
var loc = this.i18n_loc_get_default();
sorter = this.php_js.i18nLocales[loc].sorting;
break;
Expand Down Expand Up @@ -108,4 +108,4 @@ function asort(inputArr, sort_flags) {
}

return strictForIn || populateArr;
}
}
4 changes: 2 additions & 2 deletions functions/array/krsort.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function krsort(inputArr, sort_flags) {
};
break;
case 'SORT_LOCALE_STRING':
// compare items as strings, original by the current locale (set with i18n_loc_set_default() as of PHP6)
// compare items as strings, based on the current locale (set with i18n_loc_set_default() as of PHP6)
var loc = this.i18n_loc_get_default();
sorter = this.php_js.i18nLocales[loc].sorting;
break;
Expand Down Expand Up @@ -103,4 +103,4 @@ function krsort(inputArr, sort_flags) {
}

return strictForIn || populateArr;
}
}
4 changes: 2 additions & 2 deletions functions/array/rsort.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function rsort(inputArr, sort_flags) {
};
break;
case 'SORT_LOCALE_STRING':
// compare items as strings, original by the current locale (set with i18n_loc_set_default() as of PHP6)
// compare items as strings, based on the current locale (set with i18n_loc_set_default() as of PHP6)
var loc = this.i18n_loc_get_default();
sorter = this.php_js.i18nLocales[loc].sorting;
break;
Expand Down Expand Up @@ -106,4 +106,4 @@ function rsort(inputArr, sort_flags) {
populateArr[i] = valArr[i];
}
return strictForIn || populateArr;
}
}
4 changes: 2 additions & 2 deletions functions/array/sort.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function sort(inputArr, sort_flags) {
};
break;
case 'SORT_LOCALE_STRING':
// compare items as strings, original by the current locale (set with i18n_loc_set_default() as of PHP6)
// compare items as strings, based on the current locale (set with i18n_loc_set_default() as of PHP6)
var loc = this.i18n_loc_get_default();
sorter = this.php_js.i18nLocales[loc].sorting;
break;
Expand Down Expand Up @@ -107,4 +107,4 @@ function sort(inputArr, sort_flags) {
populateArr[i] = valArr[i];
}
return strictForIn || populateArr;
}
}
4 changes: 2 additions & 2 deletions functions/misc/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ function pack(format) {
// float (machine dependent size and representation)
case 'd':
// double (machine dependent size and representation)
// version original by IEEE754
// version based on IEEE754
precisionBits = 23;
exponentBits = 8;
if (instruction === 'd') {
Expand Down Expand Up @@ -354,4 +354,4 @@ function pack(format) {
}

return result;
}
}
8 changes: 4 additions & 4 deletions functions/strings/setlocale.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function setlocale(category, locale) {
// Assuming distinction between numeric and monetary is thus:
// See below for C locale
'LC_MONETARY': {
// original by Windows "english" (English_United States.1252) locale
// based on Windows "english" (English_United States.1252) locale
int_curr_symbol: 'USD',
currency_symbol: '$',
mon_decimal_point: '.',
Expand All @@ -212,7 +212,7 @@ function setlocale(category, locale) {
n_sign_posn: 0 // see p_sign_posn
},
'LC_NUMERIC': {
// original by Windows "english" (English_United States.1252) locale
// based on Windows "english" (English_United States.1252) locale
decimal_point: '.',
thousands_sep: ',',
grouping: [3] // see mon_grouping, but for non-monetary values (use thousands_sep)
Expand All @@ -229,7 +229,7 @@ function setlocale(category, locale) {
phpjs.locales.en_US.LC_TIME.c = '%a %d %b %Y %r %Z';
phpjs.locales.en_US.LC_TIME.x = '%D';
phpjs.locales.en_US.LC_TIME.X = '%r';
// The following are original by *nix settings
// The following are based on *nix settings
phpjs.locales.en_US.LC_MONETARY.int_curr_symbol = 'USD ';
phpjs.locales.en_US.LC_MONETARY.p_sign_posn = 1;
phpjs.locales.en_US.LC_MONETARY.n_sign_posn = 1;
Expand Down Expand Up @@ -377,4 +377,4 @@ function setlocale(category, locale) {
this.php_js.localeCategories[category] = locale;
}
return locale;
}
}
2 changes: 1 addition & 1 deletion workbench/calendar/easter_date.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function easter_date(year) {
// original by algorithm from polish wikipedia (http://pl.wikipedia.org/wiki/Wielkanoc)
// based on algorithm from polish wikipedia (http://pl.wikipedia.org/wiki/Wielkanoc)

year = isNaN(year) ? new Date().getFullYear() : +year;

Expand Down
2 changes: 1 addition & 1 deletion workbench/datetime/date_parse_from_format.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function date_parse_from_format(format, dateArg) {
var newtime = 0, retObj = {};

var _dst = function(t) {
// Calculate Daylight Saving Time (original by gettimeofday() code)
// Calculate Daylight Saving Time (based on gettimeofday() code)
var dst = 0;
var jan1 = new Date(t.getFullYear(), 0, 1, 0, 0, 0, 0); // jan 1st
var june1 = new Date(t.getFullYear(), 6, 1, 0, 0, 0, 0); // june 1st
Expand Down
4 changes: 2 additions & 2 deletions workbench/strings/metaphone.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
function metaphone(str) {
// The code below is original by description from Wikipedia (http://en.wikipedia.org/wiki/Metaphone)
// The code below is based on description from Wikipedia (http://en.wikipedia.org/wiki/Metaphone)
// There are some modifications applied, like
// - changing the order of rules
// - changing the rules to match PHP algorithm
// modifications are original by PHP metaphone source code
// modifications are based on PHP metaphone source code

// changing the input string to lower case
// all rules replace lower-case characters with upper-case, so following rules won't be applied to already computed parts
Expand Down
2 changes: 1 addition & 1 deletion workbench/tokenizer/test2.php
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ function merge(Style $style) {

/**
* Returns an array(r, g, b, "r"=> r, "g"=>g, "b"=>b, "hex"=>"#rrggbb")
* original by the provided CSS colour value.
* based on the provided CSS colour value.
*
* @param string $colour
* @return array
Expand Down

0 comments on commit db7fec5

Please sign in to comment.