Skip to content

Commit db7fec5

Browse files
committed
Patch up a careless attribution mass replace
locutusjs@e19de08#commitcomment-9322042
1 parent adc9bff commit db7fec5

File tree

13 files changed

+24
-24
lines changed

13 files changed

+24
-24
lines changed

experimental/datetime/timezone_abbreviations_list.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ function timezone_abbreviations_list() {
33
// + original by: Brett Zamir (http://brett-zamir.me)
44
// + input by: ChaosNo1
55
// + revised by: Theriault
6-
// + improved by: Brett Zamir (http://brett-zamir.me)
7-
// % note 1: original by timezonemap.h from PHP 5.3
6+
// + improved by: Brett Zamir (http://brett-zamir.me)
7+
// % note 1: based on timezonemap.h from PHP 5.3
88
// * example 1: var list = timezone_abbreviations_list()
99
// * example 1: list.acst[0].timezone_id
1010
// * returns 1: 'America/Porto_Acre'

functions/_phpjs_shared/_phpjs_shared_bc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ function _phpjs_shared_bc() {
514514
},
515515

516516
/* Recursive divide and conquer multiply algorithm.
517-
original by
517+
based on
518518
Let u = u0 + u1*(b^n)
519519
Let v = v0 + v1*(b^n)
520520
Then uv = (B^2n+B^n)*u1*v1 + B^n*(u1-u0)*(v0-v1) + (B^n+1)*u0*v0

functions/array/arsort.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function arsort(inputArr, sort_flags) {
4545
};
4646
break;
4747
case 'SORT_LOCALE_STRING':
48-
// compare items as strings, original by the current locale (set with i18n_loc_set_default() as of PHP6)
48+
// compare items as strings, based on the current locale (set with i18n_loc_set_default() as of PHP6)
4949
var loc = this.i18n_loc_get_default();
5050
sorter = this.php_js.i18nLocales[loc].sorting;
5151
break;
@@ -102,4 +102,4 @@ function arsort(inputArr, sort_flags) {
102102
}
103103

104104
return strictForIn || populateArr;
105-
}
105+
}

functions/array/asort.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function asort(inputArr, sort_flags) {
5050
};
5151
break;
5252
case 'SORT_LOCALE_STRING':
53-
// compare items as strings, original by the current locale (set with i18n_loc_set_default() as of PHP6)
53+
// compare items as strings, based on the current locale (set with i18n_loc_set_default() as of PHP6)
5454
var loc = this.i18n_loc_get_default();
5555
sorter = this.php_js.i18nLocales[loc].sorting;
5656
break;
@@ -108,4 +108,4 @@ function asort(inputArr, sort_flags) {
108108
}
109109

110110
return strictForIn || populateArr;
111-
}
111+
}

functions/array/krsort.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function krsort(inputArr, sort_flags) {
4242
};
4343
break;
4444
case 'SORT_LOCALE_STRING':
45-
// compare items as strings, original by the current locale (set with i18n_loc_set_default() as of PHP6)
45+
// compare items as strings, based on the current locale (set with i18n_loc_set_default() as of PHP6)
4646
var loc = this.i18n_loc_get_default();
4747
sorter = this.php_js.i18nLocales[loc].sorting;
4848
break;
@@ -103,4 +103,4 @@ function krsort(inputArr, sort_flags) {
103103
}
104104

105105
return strictForIn || populateArr;
106-
}
106+
}

functions/array/rsort.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function rsort(inputArr, sort_flags) {
4646
};
4747
break;
4848
case 'SORT_LOCALE_STRING':
49-
// compare items as strings, original by the current locale (set with i18n_loc_set_default() as of PHP6)
49+
// compare items as strings, based on the current locale (set with i18n_loc_set_default() as of PHP6)
5050
var loc = this.i18n_loc_get_default();
5151
sorter = this.php_js.i18nLocales[loc].sorting;
5252
break;
@@ -106,4 +106,4 @@ function rsort(inputArr, sort_flags) {
106106
populateArr[i] = valArr[i];
107107
}
108108
return strictForIn || populateArr;
109-
}
109+
}

functions/array/sort.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function sort(inputArr, sort_flags) {
4747
};
4848
break;
4949
case 'SORT_LOCALE_STRING':
50-
// compare items as strings, original by the current locale (set with i18n_loc_set_default() as of PHP6)
50+
// compare items as strings, based on the current locale (set with i18n_loc_set_default() as of PHP6)
5151
var loc = this.i18n_loc_get_default();
5252
sorter = this.php_js.i18nLocales[loc].sorting;
5353
break;
@@ -107,4 +107,4 @@ function sort(inputArr, sort_flags) {
107107
populateArr[i] = valArr[i];
108108
}
109109
return strictForIn || populateArr;
110-
}
110+
}

functions/misc/pack.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function pack(format) {
204204
// float (machine dependent size and representation)
205205
case 'd':
206206
// double (machine dependent size and representation)
207-
// version original by IEEE754
207+
// version based on IEEE754
208208
precisionBits = 23;
209209
exponentBits = 8;
210210
if (instruction === 'd') {
@@ -354,4 +354,4 @@ function pack(format) {
354354
}
355355

356356
return result;
357-
}
357+
}

functions/strings/setlocale.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function setlocale(category, locale) {
187187
// Assuming distinction between numeric and monetary is thus:
188188
// See below for C locale
189189
'LC_MONETARY': {
190-
// original by Windows "english" (English_United States.1252) locale
190+
// based on Windows "english" (English_United States.1252) locale
191191
int_curr_symbol: 'USD',
192192
currency_symbol: '$',
193193
mon_decimal_point: '.',
@@ -212,7 +212,7 @@ function setlocale(category, locale) {
212212
n_sign_posn: 0 // see p_sign_posn
213213
},
214214
'LC_NUMERIC': {
215-
// original by Windows "english" (English_United States.1252) locale
215+
// based on Windows "english" (English_United States.1252) locale
216216
decimal_point: '.',
217217
thousands_sep: ',',
218218
grouping: [3] // see mon_grouping, but for non-monetary values (use thousands_sep)
@@ -229,7 +229,7 @@ function setlocale(category, locale) {
229229
phpjs.locales.en_US.LC_TIME.c = '%a %d %b %Y %r %Z';
230230
phpjs.locales.en_US.LC_TIME.x = '%D';
231231
phpjs.locales.en_US.LC_TIME.X = '%r';
232-
// The following are original by *nix settings
232+
// The following are based on *nix settings
233233
phpjs.locales.en_US.LC_MONETARY.int_curr_symbol = 'USD ';
234234
phpjs.locales.en_US.LC_MONETARY.p_sign_posn = 1;
235235
phpjs.locales.en_US.LC_MONETARY.n_sign_posn = 1;
@@ -377,4 +377,4 @@ function setlocale(category, locale) {
377377
this.php_js.localeCategories[category] = locale;
378378
}
379379
return locale;
380-
}
380+
}

workbench/calendar/easter_date.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function easter_date(year) {
2-
// original by algorithm from polish wikipedia (http://pl.wikipedia.org/wiki/Wielkanoc)
2+
// based on algorithm from polish wikipedia (http://pl.wikipedia.org/wiki/Wielkanoc)
33

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

workbench/datetime/date_parse_from_format.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function date_parse_from_format(format, dateArg) {
1010
var newtime = 0, retObj = {};
1111

1212
var _dst = function(t) {
13-
// Calculate Daylight Saving Time (original by gettimeofday() code)
13+
// Calculate Daylight Saving Time (based on gettimeofday() code)
1414
var dst = 0;
1515
var jan1 = new Date(t.getFullYear(), 0, 1, 0, 0, 0, 0); // jan 1st
1616
var june1 = new Date(t.getFullYear(), 6, 1, 0, 0, 0, 0); // june 1st

workbench/strings/metaphone.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
function metaphone(str) {
2-
// The code below is original by description from Wikipedia (http://en.wikipedia.org/wiki/Metaphone)
2+
// The code below is based on description from Wikipedia (http://en.wikipedia.org/wiki/Metaphone)
33
// There are some modifications applied, like
44
// - changing the order of rules
55
// - changing the rules to match PHP algorithm
6-
// modifications are original by PHP metaphone source code
6+
// modifications are based on PHP metaphone source code
77

88
// changing the input string to lower case
99
// all rules replace lower-case characters with upper-case, so following rules won't be applied to already computed parts

workbench/tokenizer/test2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ function merge(Style $style) {
575575

576576
/**
577577
* Returns an array(r, g, b, "r"=> r, "g"=>g, "b"=>b, "hex"=>"#rrggbb")
578-
* original by the provided CSS colour value.
578+
* based on the provided CSS colour value.
579579
*
580580
* @param string $colour
581581
* @return array

0 commit comments

Comments
 (0)