hi i am trying to patch the phone app for international dialing.

how do i get the international code that i am currently in?

for example i am in singapore. how do i get +65
if i am in usa how do i get +1

i am talking the coding how do i access from the phone's data?