PageSourceSearch

https://starfishmyanmar.com/plugins/myanmarNumToWord/myanmarNumToWord.js

js starfishmyanmar.com collected 2026-10-01 14:28:17 UTC 2,302 bytes, 1 lines download raw bytes

1!function(e){"use strict";function r(){var e={},r=["","တစ်","နှစ်","သုံး","လေး","ငါး","ခြောက်","ခုနှစ်","ရှစ်","ကိုး","တစ်ဆယ်"],n=r.slice(1).join("|"),t={"၀":0,"၁":1,"၂":2,"၃":3,"၄":4,"၅":5,"၆":6,"၇":7,"၈":8,"၉":9};return e.convertToEnglishNumber=function(e){return e=(e=(e=e.toString()).replace(/([၁၂၃၄၅၆၇၈၉၀])ဝ/g,"$10")).replace(/ဝ([၁၂၃၄၅၆၇၈၉၀])/g,"0$1"),Object.keys(t).forEach((function(r){const n=new RegExp(r,"g");e=e.replace(n,t[r])})),e},e.convertToBurmeseNumber=function(e){return e=e.toString(),Object.keys(t).forEach((function(r){const n=new RegExp(t[r],"g");e=e.replace(n,r)})),e},e.convertToBurmeseWords=function(t,o="written"){if(!t)return t;if(t=e.convertToEnglishNumber(t),isNaN(t))throw new Error("Invalid number to convert.");if((t=t.toString()).length>10)return"overflow";var u=("000000000"+t).substr(-10).match(/^(\d{1})(\d{1})(\d{1})(\d{2})(\d{1})(\d{1})(\d{1})(\d{2})$/);if(!u)return;var i="",c="";i+=0!=u[1]?"သိန်း"+r[u[1][0]]+"သောင်း":"",i+=0!=u[2]?(""!=i?"":"သိန်း")+r[u[2][0]]+"ထောင်":"",i+=0!=u[3]?(""!=i?"":"သိန်း")+r[u[3][0]]+"ရာ":"",0!=u[4]&&(r[u[4][0]]&&!r[u[4][1]]?i+=(""!=i?"":"သိန်း")+r[u[4][0]]+"ဆယ်":(r[u[4][0]]||r[u[4][1]])&&(i+=(r[Number(u[4])]||r[u[4][0]]+"ဆယ်"+r[u[4][1]])+"သိန်း")),c+=0!=u[5]?r[Number(u[5])]+"သောင်း":"",c+=0!=u[6]?r[Number(u[6])]+"ထောင်":"",c+=0!=u[7]?r[Number(u[7])]+"ရာ":"",c+=0!=u[8]?r[Number(u[8])]||r[u[8][0]]+"ဆယ်"+r[u[8][1]]:"";var m=""!==i&&""!==c?i+" နှင့် "+c:i+c;const d=new RegExp("(ဆယ်(?="+n+"))|(ရာ(?="+n+"))|(ထောင်(?="+n+"))|(သောင်း)","gi");return(m=m.replace(d,(function(e){return"ရာ"==e?"speech"==o?"ရာ့ ":"ရာ ":"ထောင်"==e?"speech"==o?"ထောင့် ":"ထောင် ":"ဆယ်"==e?"ဆယ့်":e+" "}))).trim()},e}"function"==typeof define&&define.amd?define((function(){return r()})):"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=r()),exports.myanmarNumToWord=r()):void 0===e.myanmarNumToWord&&(e.myanmarNumToWord=r())}(this);

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.