PageSourceSearch

https://www3.lifecard.co.jp/WebDesk/ext/convertChar.js?NLZ6lMHc0dezXbAQon6bRA

js lifecard.co.jp collected 2026-09-24 09:29:21 UTC 2,738 bytes, 73 lines download raw bytes

1// 全角数字⇒半角数字
2String.prototype.toSingleByteNumeric = function() {
3	return this.replace(/[0-9]/g, function(s) {
4		return String.fromCharCode(s.charCodeAt(0) - 0xfee0);
5	});
6}
7
8// ひらがな⇒カタカナ
9String.prototype.toKatakana = function() {
10	return this.replace(/[ぁ-ん]/g, function(s) {
11		return String.fromCharCode(s.charCodeAt(0) + 0x60);
12	});
13}
14
15// 半角英数字⇒全角英数字
16String.prototype.toFullwidthChar = function() {
17	return this.replace(/[A-Za-z0-9]/g, function(s) {
18	    return String.fromCharCode(s.charCodeAt(0) + 0xfee0);
19	});
20}
21
22// 半角英数字・半角()⇒全角英数字・全角()
23String.prototype.toFullwidthCharKakko = function() {
24	return this.replace(/[A-Za-z0-9()]/g, function(s) {
25	    return String.fromCharCode(s.charCodeAt(0) + 0xfee0);
26	});
27}
28
29// 全角英数字・記号⇒半角英数字・記号
30String.prototype.toHalfwidthChar = function() {
31	return this.replace(/[!-~]/g, function(s) {
32	    return String.fromCharCode(s.charCodeAt(0) - 0xfee0);
33    });
34}
35
36// 半角カナ⇒全角カナ
37const D_MUD = 'ガギグゲゴザジズゼゾダヂヅデドバビブベボパピプペポ';
38const S_MUD = 'ガギグゲゴザジズゼゾダヂヅデドバビブベボパピプペポ';
39const D_KIY = 'アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲンァィゥェォッャュョ。、ー「」・ー--';
40const S_KIY = 'アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲンァィゥェォッャュョ。、ー「」・ー-—⁻';
41const D_KIGO = '‘’';
42const S_KIGO = '\`\'';
43const D_NOBASI = 'ー';
44const D_HYPHEN = '-';
45// 半角カナ⇒全角カナ
46const toZenKana = str =>{
47    for(let i=0, len=D_MUD.length; i<len; i++) {
48        const re = new RegExp(S_MUD.slice(i*2, i*2+2), 'g');
49        str = str.replace(re ,D_MUD.slice(i,i+1));
50    }
51    for(let i=0, len=D_KIY.length; i<len; i++) {
52        const re= new RegExp(S_KIY.slice(i, i+1), 'g');
53        str = str.replace(re,D_KIY.slice(i,i+1));
54    }
55    return str;
56};
57
58// 全角記号(‘’)⇒半角記号(`')
59const toHanKigo = str =>{
60    for(let i=0, len=S_KIGO.length; i<len; i++) {
61        const re= new RegExp(D_KIGO.slice(i, i+1), 'g');
62        str = str.replace(re,S_KIGO.slice(i,i+1));
63    }
64    return str;
65};
66// - ⇒ー
67const toZenHyphen = str =>{
68    for(let i=0, len=D_NOBASI.length; i<len; i++) {
69        const re= new RegExp(D_HYPHEN.slice(i, i+1), 'g');
70        str = str.replace(re,D_NOBASI.slice(i,i+1));
71    }
72    return str;
73};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.