@gsam64:
There's some mistakes for ID - I forgot to convert 21, 24, 31, 61 to HEX in the file. :P
The new file has been uploaded and here's the link:
http://www.mediafire.com/file/kmwywn...ts.phoneformat
This has been corrected and the link to the original post updated as well.
All ID formats are with 0 in front, I just didn't have it in the format strings. Also, I'm sticking to my formats of having spaces in the subscriber numbers. So you'll get "451 x xxxx" instead of your preferred "451 xxxxx". You're welcomed to change the file to your liking.
Here are the complete rules for the countries SG, MY, PH, TH, ID.
( 65 , sg , C0 56 )
http://en.wikipedia.org/wiki/%2B65
<string>#### ####</string>
<string>1 800 ### ####</string>
<string>020 14 # ### ####</string>
<string>020 15 # #### ####</string>
<string>020 1# ### ####</string>
<string>020 3 #### ####</string>
<string>020 # ### ####</string>
[( L1, L2, 3, ( 0, 00#, 01# ))
( 1 , 1 ,
(6,9,8,0,1))
( 4 , 4 ,
(1800,1800,11,0,2)
(2014,2014,12,1,6)
(2015,2015,13,1,7)
(2012,2019,11,1,3)
( 3 , 2 ,
(203,203,11,1,4)
(204,209,10,1,5))
(
1= #### ####
2= # ### ### ####
3= n## ## ### ####
4= n## # #### ####
5= n## # ### ####
6= n## ## # ### ####
7= n## ## # #### ####
)]
( 60 , my , C4 57 )
http://en.wikipedia.org/wiki/%2B60
<string>### ####</string>
<string>#### ####</string>
<string>1800 ## ####</string>
<string>1900 ## ####</string>
<string>014 # ### ####</string>
<string>015 # #### ####</string>
<string>01# ### ####</string>
<string>03 #### ####</string>
<string>0# ### ####</string>
[( L1, L2, 3, ( 0, 00 ))
( 1 , 4 ,
(3,3,9,1,7)
(4,9,8,1,8)
(2,9,7,0,1)
(2,9,8,0,2))
( 4 , 2 ,
(1800,1800,10,0,3)
(1900,1900,10,0,3))
( 2 , 3 ,
(14,14,10,1,4)
(15,15,11,1,5)
(12,19,9,1,6))
(
1= ### ####
2= #### ####
3= #### ## ####
4= n## # ### ####
5= n## # #### ####
6= n## ### ####
7= n# #### ####
8= n# ### ####
)]
( 63 , ph , DC 58 )
http://en.wikipedia.org/wiki/%2B63
<string>02 ### ####</string>
<string>0## ### ####</string>
<string>09## ### ####</string>
[( L1, L2, 3, ( 0, 00 ))
( 1 , 3 ,
(2,2,8,1,1)
(3,8,9,1,2)
(9,9,10,1,3))
(
1= n# ### ####
2= n## ### ####
3= n### ### ####
)]
( 66 , th , 50 59 )
http://en.wikipedia.org/wiki/%2B66
<string>0# ### ####</string>
<string>0## ### ###</string>
<string>0# #### ####</string>
[( L1 , L2 , 1 , ( 0 , 001 ) )
( 1 , 4 ,
(2,2,8,1,Lstr1)
(6,6,9,1,Lstr3)
(3,7,8,1,Lstr2)
(8,8,9,1,Lstr3))
(
1= n# ### ####
2= n## ### ###
3= n# #### ####
)]
( 62 , id , D0 59 )
http://en.wikipedia.org/wiki/%2B62
<string>021 ### ####</string>
<string>022 ### ####</string>
<string>024 ### ####</string>
<string>031 ### ####</string>
<string>061 ### ####</string>
<string>081# ## ####</string>
<string>0881 ### ####</string>
<string>08## #### ####</string>
<string>0### # ####</string>
<string>0### ## ####</string>
<string>0### ### ####</string>
[( L1, L2, 2, ( 0, 001, 007, 008 ))
( 2 , 5 ,
(21,22,9,1,1)
(24,24,9,1,1)
(31,31,9,1,1)
(61,61,9,1,1)
(81,81,9,1,2)
( 3 , 5 ,
(881,881,10,1,3)
(800,899,11,1,4)
(230,999,8,1,5)
(230,999,9,1,2)
(230,999,10,1,3)
)
(
1= n## ### ####
2= n### ## ####
3= n### ### ####
4= n### #### ####
5= n### # ####
)]