r2681
r2597
1[[분류:냥]]
r2644
2{{{#!if au='222222222'
3}}}
4@au@
r2650
5{{{#!if au += "000000000000000000"
6+18자}}}{{{#!if au=au.substr(0,18)
7}}}{{{#!if al = au.length
r2644
8}}}
9@au@
10@al@자
r2641
11
r2662
12||<#fff"> <#fff'''{{{#red \"}}}'''>왜 문제가 없지 ||
r2629
13##
14folding, wiki(스타일), html은 뒤에 띄어쓰기 없어도 작동.
15다만 dark-style은 꼭 "-"만 사용 가능.
16if, syntax는 띄어쓰기 없을 시 에러.
17##
r2624
18== 문단 ==
r2671
19{{{#!folding 계산기 테스트
r2636
20{{{-5
r2643
21[include(틀:계산기2, a=1.1, f=-, b=-1.2)]
r2637
22[include(틀:계산기2, a=9223372036854775808, f=-, b=-9223372036854775800)]
r2636
23[include(틀:계산기2, a=., f=-, b=-.)]
24[include(틀:계산기2, a=-, f=+, b=-)]
25[include(틀:계산기2, a=10, f=/, b=3)]
r2624
26[include(틀:계산기2, a=-5, f=/, b=200)]
27[include(틀:계산기2, a=-5, f=*, b=200)]
28[include(틀:계산기2, a=123459, f=/, b=2)]
29[include(틀:계산기2, a=12345, f=-, b=67890)]
r2630
30[include(틀:계산기2, a=123456789012345678, f=-, b=-901234567890123456)]
r2632
31[include(틀:계산기2, a=123456789012345678.901234567890123456, f=+, b=789012345678901234.567890123456789012)]
r2639
32[include(틀:계산기2, a=123456789012345678.9012345678901234567, f=+, b=789012345678901234.567890123456789012)]
r2624
33[include(틀:계산기2, a=-1, f=*, b=-5)]
34[include(틀:계산기2, a=-3, f=/, b=7)]
r2633
35[include(틀:계산기2, a=1.1, f=+, b=0.1)]
r2634
36[include(틀:계산기2, a=1.123, f=+, b=0.877)]
37[include(틀:계산기2, a=1.123, f=+, b=0.878)]
r2635
38[include(틀:계산기2, a=1.333, f=-, b=4.354)]
r2638
39[include(틀:계산기2, a=7.89, f=-, b=12.345)]
r2640
40[include(틀:계산기2, a=1, f=-, b=0.000000000000000001)]
41[include(틀:계산기2, a=1.000000000000000002, f=-, b=2.000000000000000001)]}}}
r2671
42아직은 소수끼리의 계산은 되지 않는 모양이다. 사실 그도 그럴 것이 gauss함수를 가져오지 않았기 때문)}}}
r2624
43
44{{{#!if json={'a':'b', 'c':'d'}
45json={'a':'b', 'c':'d'}[br]
46}}}{{{#!if json['a'] == 'b'
47json['a'] == 'b'[br]
48}}}{{{#!if list = ['a', 'b']
49list = ['a', 'b'][br]
50}}}{{{#!if list[1] == 'b'
51list[1] == 'b'[br]
52}}}
53
54[[../냥]] < 볼드체. 단, {{{../}}}뒤에 붙는 이름이 자기자신과 같은 이름이면 볼드체, 다른 이름(예 : [[../냥냥]], [[../냥/냥]])이면 볼드체가 아니다. 문서명이 '[[냥/냥|(상위문서명)/냥]]'일 경우에도 볼드체가 된다. 이 문서에는 상위 문서가 없으니 그냥 '냥' 으로 링크되는 듯 하다.
55[[냥#]] < 볼드체
56[[냥#ㅁㄴㅇㄹ|냥#ㅁㄴㅇㄹ]] < 볼드체아님
57[[문서:냥]] < 볼드체아님
58
59[include(틀:계산기, r=13)]
60\[include(틀:계산기, r=13)]
61생각해보니까 그냥 r을 지정할 수도 있겠구나
62[include(틀:계산기, a=123456789, f=+, b=1)]
63[include(틀:계산기, a=123456789, f=-, b=1)]
64[include(틀:계산기, a=123459, f=*, b=2)]
65[include(틀:계산기, a=123459, f=/, b=2)]
r2646
66== 그래프구상 ==
67{{{#!if i=0, x=0
r2648
68}}}<math>x^2</math>
r2646
69{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
70}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
71}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
72}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
73}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
74}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
75}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
76}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
77}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
78}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
79}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
80}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
81}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
82}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
83}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
84}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
85}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
86}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
87}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
88}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
89}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
90}}}{{{#!if x1 = i**2, x2 = (i+1)**2, this['y'+i]=(x2-x1), this['v'+i]=x1, i+=1
r2652
91}}}{{{#!if true
r2669
92#tk : thickness (px) ; wd : width (px)
93{{{#!if tk=1+0.0, color="#666", wd=10+0.0
94}}}}}}{{{#!if tk=(+tk)/2, tk=tk.toString(), dis="display: inline-table; background: linear-gradient", rb="to right bottom", rt="to right top", tp="transparent", c1="calc(50% - "+tk+"px)", c2="calc(50% + "+tk+"px)", c3=tp+" "+c1+", "+color+" "+c1+" "+c2+", "+tp+" "+c2, hg="height: ", wd=wd.toString(), wdx="width: "+wd+"px", vag="vertical-align: calc"
r2646
95}}}
r2669
96{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y1@px; @wdx@; @vag@(@v1@px + @tk@px)"
97}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y2@px; @wdx@; @vag@(@v2@px + @tk@px);"
98}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y3@px; @wdx@; @vag@(@v3@px + @tk@px);"
r2670
99}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y4@px; @wdx@; @vag@(@v4@px + @tk@px);"
100}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y5@px; @wdx@; @vag@(@v5@px + @tk@px);"
101}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y6@px; @wdx@; @vag@(@v6@px + @tk@px);"
102}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y7@px; @wdx@; @vag@(@v7@px + @tk@px);"
103}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y8@px; @wdx@; @vag@(@v8@px + @tk@px);"
104}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y9@px; @wdx@; @vag@(@v9@px + @tk@px);"
105}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y10@px; @wdx@; @vag@(@v10@px + @tk@px)"
106}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y11@px; @wdx@; @vag@(@v11@px + @tk@px)"
107}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y12@px; @wdx@; @vag@(@v12@px + @tk@px)"
108}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y13@px; @wdx@; @vag@(@v13@px + @tk@px)"
109}}}{{{#!wiki style="@dis@(@rb@, @c3@); @hg@@y14@px; @wdx@; @vag@(@v14@px + @tk@px)"
r2646
110}}}
r2624
111
r2657
112== 나무나무마크구상 ==
r2681
113 * 할거 > 분류
r2680

(r2677으로 되돌림)
114## \{{{#!html <div style="clear: both"/>}}}
115## == clearfix
116input={{{냥[[링크|냥]]냥[[https://namu.wiki/w/사용자:nyangx3|냥]]냥}}}
117{{{#!wiki style="display: none"
118{{{#!if input='냥[[링크|냥]]냥[[https://namu.wiki/w/사용자:nyangx3|냥]]냥'
r2657
119}}}
r2680

(r2677으로 되돌림)
120{{{#!if href = null, linkPrint = null, break = false, linkColor='#0275d8', outLink=''
121}}}{{{#!if linkOpen = input.indexOf('[['), linkClose = input.indexOf(']]')
r2674
122}}}{{{#!if linkRaw = input.substring(linkOpen, linkClose+2)
123}}}{{{#!if linkOpen != -1 && linkClose != -1 && linkOpen+2 < linkClose
124## [[]] 인 경우 linkOpen+2 == linkClose 임 ^^^^^^^^^^^^^^^^^^^^^^
125 {{{#!if divider = linkRaw.indexOf('|')
126 }}}{{{#!if divider == -1
127##[[링크]]
128 {{{#!if href = linkRaw.substring(2, linkRaw.length-2)
129 }}}
130 }}}{{{#!if divider != -1
131 {{{#!if (divider == 2) && (divider+1 == linkRaw.length-2)
132 {{{#!if break = true, input = input.substring(0, linkOpen) + input.substring(linkClose+2)
133##[[|]] > 출력 x
134 }}}
135 }}}
136 {{{#!if (divider == 2) && !break
137 {{{#!if break = true, href = linkRaw.substring(divider+1, linkRaw.length-2), linkPrint = href
138##[[|링크]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로.
139 }}}
140 }}}
141 {{{#!if (divider+1 == linkRaw.length-2) && !break
142##[[링크|]], 원래는 자기 자신을 링크하지만 그건 귀찮으니 그냥 입력받은 값을 출력하기로.
143 {{{#!if break = true, href = linkRaw.substring(2, divider), linkPrint = href
144 @linkPrint@
145 @href@
146 }}}
147 }}}
148 {{{#!if !break
149 {{{#!if href = linkRaw.substring(2, divider), linkPrint = linkRaw.substring(divider+1, linkRaw.length-2)
150 }}}
151 }}}
152 }}}
153 {{{#!if isLink = (href.startsWith('https://') || href.startsWith('http://') || href.startsWith('ftp://')), isLink
r2680

(r2677으로 되돌림)
154 {{{#!if linkColor = 'none', outLink = 'asdf'
r2674
155 }}}
156 }}}{{{#!if isCategory = (href.startsWith('분류:')), isCategory
157## 나중에생각 - 실제로 분류되지는 않고(하고 싶어도 못 함 display: none으로 없어지는 것도 아니고) 그냥 분류 느낌만 내기
158 }}}{{{#!if !(isCategory || isLink)
159 {{{#!if href = 'https://theseed.io/w/'+href
160 }}}
r2680

(r2677으로 되돌림)
161 }}}{{{#!if input = input.substring(0, linkOpen) + '<div style="display: inline-table"><div style="overflow: hidden"><div style="margin-left: -1.2em' + outLink + '"><a href="' + href + '"><div style="color: ' + linkColor + '; display: inline">' + linkPrint + '</div></a></div></div></div>' + input.substring(linkClose + 2)
r2674
162 }}}
r2657
163}}}
r2680

(r2677으로 되돌림)
164###########
165{{{#!if h=null,a=null,b=false,c='#0275d8',d=''
166}}}{{{#!if e=input.indexOf('[['),x=input.indexOf(']]')
167}}}{{{#!if z=input.substring(e,x+2)
168}}}{{{#!if e!=-1&&x!=-1&&e+2<x
169{{{#!if g=z.indexOf('|')
170}}}{{{#!if g==-1
171{{{#!if h=z.substring(2,z.length-2)
172}}}}}}{{{#!if g!=-1
173{{{#!if (g==2)&&(g+1==z.length-2)
174{{{#!if b=true,input=input.substring(0,e)+input.substring(x+2)
175}}}}}}{{{#!if (g==2)&&!b
176{{{#!if b=true,h=z.substring(g+1,z.length-2),a=h
177}}}}}}{{{#!if (g+1==z.length-2)&&!b
178{{{#!if b=true,h=z.substring(2,g),a=h
179}}}}}}{{{#!if !b
180{{{#!if h=z.substring(2,g),a=z.substring(g+1,z.length-2)
181}}}}}}}}}{{{#!if isLink=(h.startsWith('https://')||h.startsWith('http://')||h.startsWith('ftp://')),isLink
182{{{#!if c='none',d='asdf'
183}}}}}}{{{#!if isCategory=(h.startsWith('분류:')),isCategory
184}}}{{{#!if !(isCategory||isLink)
185{{{#!if h='https://theseed.io/w/'+h
186}}}}}}{{{#!if input=input.substring(0,e)+'<div style="display:inline-table"><div style="overflow:hidden"><div style="margin-left:-1.2em'+d+'"><a href="'+h+'"><div style="color:'+c+';display:inline">'+a+'</div></a></div></div></div>'+input.substring(x+2)
187}}}}}}
188}}}
189output: {{{#!html @input@}}}
r2681
190
191== 나무나무마크구상2 ==
192할거 : wiki/darkstyle/+/-/#fff
193리터럴귀찮음 if folding syntax는 될리가없음
194input=냥\{\{\{#!html \{\{\{#html \}\}\}냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}
195##괄호를 ) 를 찾고 (를 나중에 찾는 방식이라(이게 로직이 더 간단함 근데 처리부분 길어지면 바꿀수도) input에 다른 거 오면 창남ㅇㅇ
196
197{{{#!wiki style="display: none"
198{{{#!if input='냥\{\{\{#!html \{\{\{#html \}\}\}냥<div style="color: red; display: inline">냥</div>\}\}\}냥\{\{\{#!html 냥<div style="color: red; display: inline">냥</div>\}\}\}'
199}}}{{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true
200 {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen
201 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
202 }}}
203 {{{#!if _ParOpen == -1
204 {{{#!if Match=true
205 }}}
206 }}}{{{#!if _ParOpen != -1
207 {{{#!if ParOpen=_ParOpen
208 }}}
209 }}}
210############################
211 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
212 }}}
213 {{{#!if _ParOpen == -1
214 {{{#!if Match=true
215 }}}
216 }}}{{{#!if _ParOpen != -1
217 {{{#!if ParOpen+=_ParOpen+3
218 }}}
219 }}}
220############################
221 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
222 }}}
223 {{{#!if _ParOpen == -1
224 {{{#!if Match=true
225 }}}
226 }}}{{{#!if _ParOpen != -1
227 {{{#!if ParOpen+=_ParOpen+3
228 }}}
229 }}}
230 }}}
231 {{{#!if Match
232 {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3)
233 }}}
234 }}}
235}}}{{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true
236 {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen
237 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
238 }}}
239 {{{#!if _ParOpen == -1
240 {{{#!if Match=true
241 }}}
242 }}}{{{#!if _ParOpen != -1
243 {{{#!if ParOpen=_ParOpen
244 }}}
245 }}}
246############################
247 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
248 }}}
249 {{{#!if _ParOpen == -1
250 {{{#!if Match=true
251 }}}
252 }}}{{{#!if _ParOpen != -1
253 {{{#!if ParOpen+=_ParOpen+3
254 }}}
255 }}}
256############################
257 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
258 }}}
259 {{{#!if _ParOpen == -1
260 {{{#!if Match=true
261 }}}
262 }}}{{{#!if _ParOpen != -1
263 {{{#!if ParOpen+=_ParOpen+3
264 }}}
265 }}}
266 }}}
267 {{{#!if Match
268 {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3)
269 }}}
270 }}}
271}}}{{{#!if ParClose=input.indexOf('\}\}\}'), ParOpen=input.indexOf('\{\{\{'), Match=false, true
272 {{{#!if ParClose!=-1&&ParOpen!=-1&&ParClose>ParOpen
273 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
274 }}}
275 {{{#!if _ParOpen == -1
276 {{{#!if Match=true
277 }}}
278 }}}{{{#!if _ParOpen != -1
279 {{{#!if ParOpen=_ParOpen
280 }}}
281 }}}
282############################
283 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
284 }}}
285 {{{#!if _ParOpen == -1
286 {{{#!if Match=true
287 }}}
288 }}}{{{#!if _ParOpen != -1
289 {{{#!if ParOpen+=_ParOpen+3
290 }}}
291 }}}
292############################
293 {{{#!if _ParOpen = input.substring(ParOpen+3,ParClose).indexOf('\{\{\{')
294 }}}
295 {{{#!if _ParOpen == -1
296 {{{#!if Match=true
297 }}}
298 }}}{{{#!if _ParOpen != -1
299 {{{#!if ParOpen+=_ParOpen+3
300 }}}
301 }}}
302 }}}
303 {{{#!if Match
304 {{{#!if input = input.substring(0,ParOpen)+input.substring(ParOpen+9,ParClose).trim()+input.substr(ParClose+3)
305 }}}
306 }}}
307}}}}}}
308
309output: {{{#!html @input@}}}
r2624
310== ㅁㄴㅇㄹ ==
311[include(a)]''''''[include(a)][include(a)]
312[[]][include(a)][include(a)][include(a)]
313
314{{{#!wiki style="background: skyblue; margin: 0 auto; padding: 5px; max-width: 500px"
315||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><bgcolor=#000>||
316
317||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><rowbgcolor=#000>||
318||<colbgcolor=#000>||
319||<tan>||
320
321||<tablealign=center><tablewidth=100%><bgcolor=#000>||
322
323||<tablealign=center><tablewidth=100%>||}}}
324Mozilla/5.0 (compatible; Daum/1.0; +http://ws.daum.net/aboutkr.html) ok
325Mozilla/5.0 (compatible; coccocbot-web/1.0; +http://help.coccoc.com/web) ok
326\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)]
327[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)]
328----
329\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)]
330[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)]
331----
332\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)]
333[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)]
334----
335\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)]
336[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)]
337----
338\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)]
339[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)]
340----
341\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)]
342[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)]
343----
344\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)]
345[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)]
346----
347\[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)]
348[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)]
349----
350\[include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)]
351[include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)]
352----
353\[include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)]
354[include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)]
355\[include(틀:isuuid, uuid=냥)]
356[include(틀:isuuid, uuid=냥)]
357[include(틀:ㅁ, str=Hello\, World!)]
358toString() 가능
359parseInt() x
360
361== ==
r2584
362{{{#!wiki style="font-weight: 300; font-size: 20px"
363{{{#!if 식 = '11+2'
r2597
364@식=11+2@}}} = {{{#!if s1=false, s2=false, s3=false, j=1+0, i=0+0, k=1+0
r2593
365##switch1 : 숫자 계속 탐색하기, switch2 : 소수점 아래 기입하기. switch3 : 중복 실행 방지.
r2594
366}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
r2593
367}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
r2594
368##숫자를 발견할 경우
r2591
369{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
r2595
370##여기에 앞자리가 음수냐 아니냐를 읽는 판별을 만들어야 합니다. ㅏ 이걸 생각 못했네요 그럼 좀 많이 길어지는데
r2591
371}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
372##숫자를 계속 발견할 경우 (소수점일 수도 있습니다. 여기서는 숫자일 경우)
r2592
373##여기에서 소수점 위를 기입하냐 소수점 아래를 기입하냐 소수점 아래라면 소수점 아래 몇번째 자리를 기입하느냐를 적어야 합니다.
r2597
374{{{#!if s2==false
375##정수 자리를 기입하는 경우
r2595
376{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
r2597
377}}}}}}{{{#!if s2==true
378##소수점 아래 자리를 기입하는 경우
379{{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true
380}}}{{{#!if k+=1
381##다음 소수점 자리 찾기
r2602
382}}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false)
r2605
383##앞에서 숫자를 발견한 다음 소수점을 발견할 경우 (소수점 발견은 최초 1회에 한함)
r2597
384{{{#!if s2=true, s3=true, k=1+0
385##switch2 : 켜기
r2607
386}}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46))||((s2==true)&&!this['d'+i]))&&(s3==false)
387##숫자가 더 이상 나오지 않고 소수점을 발견하지 못했을 경우, 소수점을 발견한 상황인데 숫자가 나오지 않을 경우 (소수점이 다시 나오는 경우가 자동적으로 포함)
r2591
388{{{#!if j+=1, s1=false, s2=false, s3=true
r2592
389##소수점 아래 기입하는 스위치도 off, 다음 index(j) 매김.
r2597
390}}}{{{#!if s3==true
391##여기까지 과정을 거쳤다면 스위치 off.
392{{{#!if s3=false
393}}}}}}
394}}}{{{#!if i+=1
r2594
395}}}
r2595
396##
r2599
397{{{#!if false
r2600
398##이 if문은 실행되지 않는 단락. 주석만 제거하고 복사 붙여넣기.
r2599
399{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
400}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
401{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
402}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
403{{{#!if s2==false
404{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
405}}}}}}{{{#!if s2==true
406{{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true
407}}}{{{#!if k+=1
r2603
408}}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false)
r2599
409{{{#!if s2=true, s3=true, k=1+0
r2604
410}}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46)||(s2==false))||((s2==true)&&!this['d'+i]&&(식=[i]==46)))&&(s3==false)
r2599
411{{{#!if j+=1, s1=false, s2=false, s3=true
412}}}{{{#!if s3==true
413{{{#!if s3=false
414}}}}}}
415}}}{{{#!if i+=1
416}}}
417####
418}}}
419##
r2600
420{{{#!if this['v1'] == 1
421this['v1'] == 1}}}
422##
423{{{#!if s3=false
424}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
425}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
426{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
427}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
428{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
429}}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false)
430{{{#!if s2=true, s3=true
431}}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false)
432{{{#!if j+=1, s1=false, s2=false, s3=true
433}}}}}}{{{#!if i+=1
434}}}
435##
r2595
436{{{#!if this['v1'] == 11
437this['v1'] == 11}}}
438##
r2596
439{{{#!if s3=false
440}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
441}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
442{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
443}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
444{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
445}}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false)
446{{{#!if s2=true, s3=true
447}}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false)
448{{{#!if j+=1, s1=false, s2=false, s3=true
449}}}}}}{{{#!if i+=1
450}}}{{{#!if s3=false
451}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57)
452}}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false)
453{{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true
454}}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false)
455{{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true
456}}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false)
457{{{#!if s2=true, s3=true
458}}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false)
459{{{#!if j+=1, s1=false, s2=false, s3=true
460}}}}}}{{{#!if i+=1
461}}}
r2595
462##
r2596
463{{{#!if this['v2'] == 2
464this['v2'] == 2}}}
r2595
465##
466##
467##
468##
r2593
469{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
r2586
470}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
471}}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1
r2584
472}}}
r2586
473## 식 검증이 됐다 치면
r2587
474## dn : true - 수 / false - 연산자
r2586
475{{{#!if this['d0']
4761}}}{{{#!if this['d1']
4771}}}{{{#!if !this['d2']
478+}}}{{{#!if this['d3']
r2585
4792}}}
r2587
480## in : 11+2 에서 '11'은 0번째 위치, '+'는 2번째 위치.. > 0, 2, 3 > 위치 기억 / 뺄셈으로 자릿수 계산
481## 보다 좋은 방법이 있ㅅ을 것 같은데음ㅁ..
482{{{#!if i = 1, j = 1, i0 = 0
483}}}
484{{{#!if t = this['d0'] != this['d1'], t
485{{{#!if this['i'+i] = j, j+=1, i+=1
486}}}}}}{{{#!if !t
487{{{#!if j+=1
488}}}}}}{{{#!if t = this['d1'] != this['d2'], t
489{{{#!if this['i'+i] = j, j+=1, i+=1
490}}}}}}{{{#!if !t
491{{{#!if j+=1
492}}}}}}{{{#!if t = this['d1'] != this['d2'], t
493{{{#!if this['i'+i] = j, j+=1, i+=1
494}}}}}}{{{#!if !t
495{{{#!if j+=1
r2585
496}}}}}}
r2608
497## {{{#!if i0 == 0
498## i0 == 0 }}}{{{#!if i1 == 2
499## i1 == 2 }}}{{{#!if i2 == 3
500## i2 == 3 }}}
r2587
501## {{{#!if list = [d0, d1, d2, d3]
502## }}}
r2624
503}}}