PageRenderTime 39ms CodeModel.GetById 17ms app.highlight 18ms RepoModel.GetById 1ms app.codeStats 0ms

/fund.lua

https://code.google.com/p/google-pinyin-api/
Lua | 516 lines | 500 code | 5 blank | 11 comment | 4 complexity | 13d7fdd4e00ac1822de68793543f4486 MD5 | raw file
  1-- encoding: UTF-8
  2
  3------------------------------------------------
  4-- ??????????
  5-- ??: 0.1
  6-- ???Yichen Lu
  7-- ?????http://yichenlu.cn/
  8-- ????: http://code.google.com/p/google-pinyin-api/
  9--
 10-- ?????GPLv3??
 11------------------------------------------------
 12
 13function YichenLu_Fund(input)
 14  if _YichenLu_Fund_Code[input] then
 15    return _YichenLu_Fund_Code[input]
 16  else
 17    local metatables = {}
 18    for k, v in pairs(_YichenLu_Fund_Code) do
 19      if string.sub(k, 1, #input) == input then
 20        table.insert(metatables, {["suggest"] = string.sub(k, #input+1), ["help"] = v})
 21      end
 22    end
 23    return metatables
 24  end
 25end
 26
 27_YichenLu_Fund_Code ={
 28["000001"] = "????",
 29["000011"] = "??????",
 30["000021"] = "????",
 31["000031"] = "????",
 32["000041"] = "??????",
 33["001001"] = "????A/B",
 34["001003"] = "????C",
 35["001011"] = "??????A",
 36["001013"] = "??????C",
 37["002001"] = "????",
 38["002011"] = "????",
 39["002021"] = "??????",
 40["002031"] = "??????",
 41["003003"] = "??????",
 42["020001"] = "??????",
 43["020002"] = "??????A",
 44["020003"] = "??????",
 45["020005"] = "??????",
 46["020007"] = "????",
 47["020009"] = "??????",
 48["020010"] = "??????",
 49["020011"] = "????300",
 50["020012"] = "??????C",
 51["020018"] = "????????",
 52["040001"] = "????",
 53["040002"] = "????A?",
 54["040003"] = "??????",
 55["040004"] = "??????",
 56["040005"] = "????",
 57["040006"] = "??????",
 58["040007"] = "????",
 59["040008"] = "??????",
 60["040009"] = "????A",
 61["040010"] = "????B",
 62["040011"] = "??????",
 63["050001"] = "??????",
 64["050002"] = "????",
 65["050003"] = "??????",
 66["050004"] = "????",
 67["050006"] = "??????B",
 68["050007"] = "??????",
 69["050008"] = "??????",
 70["050009"] = "??????",
 71["050010"] = "??????",
 72["050106"] = "??????A",
 73["050201"] = "??????",
 74["070001"] = "????",
 75["070002"] = "????",
 76["070003"] = "????",
 77["070005"] = "????",
 78["070006"] = "????",
 79["070008"] = "????",
 80["070009"] = "????",
 81["070010"] = "????",
 82["070011"] = "????",
 83["070012"] = "??????",
 84["070013"] = "??????",
 85["070015"] = "??????A",
 86["070016"] = "??????B",
 87["070099"] = "????",
 88["080001"] = "??????",
 89["080002"] = "??????",
 90["080003"] = "??????",
 91["080011"] = "????",
 92["090001"] = "??????",
 93["090002"] = "????A/B",
 94["090003"] = "??????",
 95["090004"] = "??????",
 96["090005"] = "????A",
 97["090006"] = "??????",
 98["090007"] = "??????",
 99["090008"] = "????A/B",
100["091005"] = "????B",
101["092002"] = "????C",
102["100016"] = "????",
103["100018"] = "????",
104["100020"] = "????",
105["100022"] = "????",
106["100025"] = "??????A",
107["100026"] = "????",
108["100028"] = "??????B",
109["100029"] = "??????",
110["100032"] = "????",
111["110001"] = "???????",
112["110002"] = "???????",
113["110003"] = "???50??",
114["110005"] = "???????",
115["110006"] = "?????A",
116["110007"] = "???????A",
117["110008"] = "???????B",
118["110009"] = "???????",
119["110010"] = "???????",
120["110011"] = "??????",
121["110012"] = "?????",
122["110013"] = "?????",
123["110016"] = "?????B",
124["110017"] = "???????A",
125["110018"] = "???????B",
126["110029"] = "?????",
127["112002"] = "???????",
128["121001"] = "??????",
129["121002"] = "??????",
130["121003"] = "??????",
131["121005"] = "??????",
132["121006"] = "??????",
133["121007"] = "??????",
134["121008"] = "??????",
135["121009"] = "??????",
136["150001"] = "??????",
137["150002"] = "????",
138["150003"] = "??????",
139["150005"] = "????A",
140["150103"] = "????",
141["151001"] = "????",
142["151002"] = "????",
143["151005"] = "????B",
144["159901"] = "????100ETF",
145["159902"] = "?????",
146["160105"] = "??????",
147["160106"] = "????",
148["160311"] = "????",
149["160314"] = "??????",
150["160505"] = "????",
151["160602"] = "??????A",
152["160603"] = "??????",
153["160605"] = "????50",
154["160606"] = "????A",
155["160607"] = "??????",
156["160608"] = "??????B",
157["160609"] = "????B",
158["160610"] = "??????",
159["160611"] = "??????",
160["160612"] = "??????",
161["160613"] = "??????",
162["160706"] = "??300",
163["160805"] = "??????",
164["160910"] = "??????",
165["161005"] = "????",
166["161010"] = "??????",
167["161601"] = "?????",
168["161603"] = "????",
169["161604"] = "????100",
170["161605"] = "??????",
171["161606"] = "??????",
172["161607"] = "????",
173["161608"] = "???????",
174["161609"] = "??????",
175["161610"] = "??????",
176["161706"] = "??????",
177["161902"] = "????",
178["161903"] = "????",
179["162006"] = "????",
180["162102"] = "????",
181["162201"] = "??????",
182["162202"] = "??????",
183["162203"] = "??????",
184["162204"] = "??????",
185["162205"] = "??????",
186["162206"] = "??????",
187["162207"] = "??????",
188["162208"] = "??????",
189["162209"] = "??????",
190["162210"] = "??????A",
191["162299"] = "??????C",
192["162605"] = "????LOF",
193["162607"] = "??????",
194["162703"] = "????",
195["163302"] = "???????",
196["163303"] = "???????",
197["163402"] = "??????",
198["163503"] = "??????",
199["163801"] = "????",
200["163802"] = "????",
201["163803"] = "????",
202["163804"] = "????",
203["163805"] = "????",
204["163806"] = "????",
205["166001"] = "?????",
206["166002"] = "?????",
207["180001"] = "????",
208["180002"] = "????",
209["180003"] = "??88",
210["180008"] = "????A",
211["180009"] = "????B",
212["180010"] = "????",
213["180012"] = "????",
214["180013"] = "??????",
215["180015"] = "??????",
216["183001"] = "??????",
217["184688"] = "????",
218["184689"] = "????",
219["184690"] = "????",
220["184691"] = "????",
221["184692"] = "????",
222["184693"] = "????",
223["184698"] = "????",
224["184699"] = "????",
225["184701"] = "????",
226["184703"] = "????",
227["184705"] = "????",
228["184706"] = "????",
229["184713"] = "????",
230["184721"] = "????",
231["184722"] = "????",
232["184728"] = "????",
233["199999"] = "????????",
234["200001"] = "????",
235["200002"] = "????",
236["200003"] = "????",
237["200006"] = "??????",
238["200007"] = "????",
239["200008"] = "??????",
240["200009"] = "??????",
241["200010"] = "?????",
242["202001"] = "??????",
243["202002"] = "??????",
244["202003"] = "??????",
245["202005"] = "??????",
246["202007"] = "??????",
247["202009"] = "??????",
248["202011"] = "??????",
249["202101"] = "????",
250["202102"] = "????",
251["202202"] = "????",
252["202211"] = "??????",
253["202301"] = "??????",
254["202801"] = "??????",
255["206001"] = "??????",
256["210001"] = "????",
257["210002"] = "??????",
258["213001"] = "??????",
259["213002"] = "??????",
260["213003"] = "??????",
261["213007"] = "??????A/B",
262["213008"] = "??????",
263["213917"] = "??????C",
264["217001"] = "??????",
265["217002"] = "??????",
266["217003"] = "??????A",
267["217004"] = "??????",
268["217005"] = "??????",
269["217008"] = "??????",
270["217009"] = "??????",
271["217010"] = "??????",
272["217011"] = "??????",
273["217203"] = "??????B",
274["233001"] = "???????",
275["240001"] = "???????",
276["240002"] = "??????",
277["240003"] = "??????",
278["240004"] = "??????",
279["240005"] = "???????",
280["240006"] = "???A",
281["240007"] = "???B",
282["240008"] = "??????",
283["240009"] = "??????",
284["240010"] = "??????",
285["240011"] = "??????",
286["241001"] = "??????",
287["253010"] = "????",
288["255010"] = "????",
289["257010"] = "????",
290["257020"] = "????",
291["257030"] = "????",
292["257040"] = "????",
293["260101"] = "??????",
294["260102"] = "??????",
295["260103"] = "??????",
296["260104"] = "??????",
297["260108"] = "??????",
298["260109"] = "??????",
299["260110"] = "??????",
300["260111"] = "??????",
301["270001"] = "????",
302["270002"] = "????",
303["270004"] = "????",
304["270005"] = "????",
305["270006"] = "????",
306["270007"] = "????",
307["270008"] = "??????",
308["270009"] = "????",
309["270010"] = "????300",
310["288001"] = "??????",
311["288002"] = "??????",
312["288101"] = "????????",
313["288102"] = "??????",
314["290001"] = "??????",
315["290002"] = "??????",
316["290003"] = "??????",
317["290004"] = "??????",
318["290005"] = "??????",
319["310308"] = "??????",
320["310318"] = "??????",
321["310328"] = "?????",
322["310338"] = "?????????",
323["310358"] = "?????",
324["310368"] = "????????",
325["310378"] = "???????A",
326["310379"] = "???????B",
327["320001"] = "????",
328["320002"] = "????",
329["320003"] = "????",
330["320004"] = "????",
331["320005"] = "????",
332["320006"] = "??????",
333["340001"] = "??????",
334["340005"] = "????",
335["340006"] = "??????",
336["340007"] = "??????",
337["350001"] = "??????",
338["350002"] = "??????",
339["350004"] = "???????",
340["350005"] = "??????",
341["350006"] = "??????",
342["360001"] = "??????",
343["360003"] = "????",
344["360005"] = "????",
345["360006"] = "?????",
346["360007"] = "????",
347["360008"] = "??????A",
348["360009"] = "??????C",
349["370010"] = "????A",
350["37001b"] = "????B",
351["373010"] = "??????",
352["373020"] = "??????",
353["375010"] = "??????",
354["377010"] = "?????",
355["377016"] = "??????",
356["377020"] = "??????",
357["378010"] = "??????",
358["379010"] = "?????",
359["395001"] = "??????",
360["398001"] = "??????",
361["398011"] = "??????",
362["398021"] = "??????",
363["398031"] = "??????",
364["400001"] = "???",
365["400003"] = "????",
366["400005"] = "???????",
367["400007"] = "??????",
368["400009"] = "??????",
369["410001"] = "?????",
370["410002"] = "????",
371["410003"] = "??????",
372["410004"] = "??????A",
373["410005"] = "??????B",
374["410006"] = "??????",
375["420001"] = "????",
376["420002"] = "??????A",
377["420003"] = "??????",
378["420102"] = "??????B",
379["450001"] = "????",
380["450002"] = "????",
381["450003"] = "????",
382["450004"] = "??????",
383["450005"] = "??????A",
384["450006"] = "??????C",
385["460001"] = "????",
386["460002"] = "????",
387["460003"] = "????B",
388["460005"] = "??????",
389["481001"] = "????",
390["481004"] = "????",
391["481006"] = "????",
392["481008"] = "??????",
393["482002"] = "??????",
394["483003"] = "????",
395["485005"] = "????B",
396["485007"] = "????B",
397["485105"] = "????A",
398["485107"] = "????A",
399["486001"] = "??????",
400["500001"] = "????",
401["500002"] = "????",
402["500003"] = "????",
403["500005"] = "????",
404["500006"] = "????",
405["500008"] = "????",
406["500009"] = "????",
407["500011"] = "????",
408["500015"] = "????",
409["500018"] = "????",
410["500025"] = "????",
411["500038"] = "????",
412["500056"] = "????",
413["500058"] = "????",
414["510050"] = "????50",
415["510080"] = "??????",
416["510081"] = "??????",
417["510180"] = "????180",
418["510880"] = "????ETF",
419["519001"] = "??????",
420["519003"] = "???????",
421["519005"] = "?????",
422["519007"] = "???????",
423["519008"] = "?????",
424["519011"] = "?????",
425["519013"] = "???????",
426["519015"] = "???????",
427["519017"] = "??????",
428["519018"] = "?????",
429["519019"] = "????",
430["519021"] = "??????",
431["519023"] = "???????",
432["519029"] = "????",
433["519035"] = "????",
434["519039"] = "??????",
435["519066"] = "???????",
436["519068"] = "?????",
437["519069"] = "???????",
438["519078"] = "?????",
439["519087"] = "???????",
440["519089"] = "???????",
441["519100"] = "????100",
442["519110"] = "??????",
443["519111"] = "??????",
444["519180"] = "??180",
445["519181"] = "????",
446["519183"] = "??????",
447["519300"] = "????300",
448["519505"] = "?????A",
449["519506"] = "?????B",
450["519508"] = "????",
451["519517"] = "?????B",
452["519518"] = "?????A",
453["519519"] = "????A",
454["519588"] = "????A",
455["519589"] = "????B",
456["519601"] = "???????",
457["519666"] = "????B",
458["519667"] = "????A",
459["519668"] = "??????",
460["519680"] = "????A",
461["519682"] = "????C",
462["519688"] = "????",
463["519690"] = "????",
464["519692"] = "????",
465["519694"] = "????",
466["519696"] = "??????",
467["519697"] = "????",
468["519989"] = "????",
469["519991"] = "????",
470["519993"] = "????",
471["519994"] = "????",
472["519996"] = "????",
473["519999"] = "??????",
474["530001"] = "??????",
475["530002"] = "????",
476["530003"] = "??????",
477["530005"] = "??????",
478["530006"] = "??????",
479["530008"] = "??????",
480["540001"] = "????2016",
481["540002"] = "??????",
482["540003"] = "??????",
483["540004"] = "????2026",
484["540005"] = "??????",
485["550001"] = "?????",
486["550002"] = "??????",
487["550003"] = "??????",
488["550004"] = "?????A",
489["550005"] = "?????B",
490["560001"] = "????",
491["560002"] = "??????",
492["560003"] = "??????",
493["560005"] = "????",
494["570001"] = "????",
495["571002"] = "????",
496["580001"] = "????",
497["580002"] = "????",
498["580003"] = "??????",
499["582001"] = "??????",
500["590001"] = "??????",
501["590002"] = "??????",
502["610001"] = "??????",
503["610002"] = "????????",
504["620001"] = "??????",
505["620002"] = "????????",
506["630001"] = "??????",
507["630002"] = "??????",
508["630003"] = "????A",
509["630103"] = "????B",
510["660001"] = "????????",
511["660002"] = "????????",
512}
513
514------------
515
516ime.register_command("jj", "YichenLu_Fund", "??","alpha","????????200001")