Implement a built-in function for parsing, formatting, and validating international phone numbers based on the following C++ library.
Native phone formatting function
- Comment • 10
Implement a built-in function for parsing, formatting, and validating international phone numbers based on the following C++ library.
Right. So, as I see it there are three ways to implement this functionality:
IMO, for this particular feature options 1 or 2 (built-in calculation or custom function) would be most appropriate.
That's always my wish, too! If we cannot have "built-in native", then "native" custom function or "native" JavaScript should be able to do the work. And yep! there still would be some things that we just need to make external calls. But having something "just work" even with a standalone (sans i'net)? GOAL!
Beverly
Not an 'external' anything if you use jbrown methods to get the JS in the file and use it!
This one may be quite complex, though, and only be valid phone numbers if a call it made eternally.
Good thought!
Beverly
This may be more promising (stripped down javascript ):
GitHub - catamphetamine/libphonenumber-js: A simpler (and smaller) rewrite of Google Android's libphonenumber library
I'd rather see a 'native' approach rather than yet another plug-in function to do this. Calling the JS with a plug-in? perhaps. In a web viewer? What says our resident WV/JS guy: jbrown
Beverly