function autoCode($this, settings) {
        runCallbacks($this, settings);
        var vmax = settings.vMax.toString().split('.'),
            vmin = (!settings.vMin && settings.vMin !== 0) ? [] : settings.vMin.toString().split('.');
        settings.aNeg = settings.vMin < 0 ? '-' : '';
        vmax[0] = vmax[0].replace('-', '');
        vmin[0] = vmin[0].replace('-', '');
        settings.mIntPos = Math.max(vmax[0].length, 1);
        settings.mIntNeg = Math.max(vmin[0].length, 1);
        if (settings.mDec === null) {
            var vmaxLength = 0,
                vminLength = 0;
            if (vmax[1]) {
                vmaxLength = vmax[1].length;
            }
            if (vmin[1]) {
                vminLength = vmin[1].length;
            }
            settings.mDec = Math.max(vmaxLength, vminLength);
            settings.oDec = settings.mDec;
        } else {
            settings.mDec = Number(settings.mDec);
        }
        /** set alternative decimal separator key */
        if (settings.altDec === null && settings.mDec > 0) {
            if (settings.aDec === '.' && settings.aSep !== ',') {
                settings.altDec = ',';
            } else if (settings.aDec === ',' && settings.aSep !== '.') {
                settings.altDec = '.';
            }
        }
        /** cache regexps for autoStrip */
        var aNegReg = settings.aNeg ? '([-\\' + settings.aNeg + ']?)' : '(-?)';
        settings.aNegRegAutoStrip = aNegReg;
        settings.skipFirstAutoStrip = new RegExp(aNegReg + '[^-' + (settings.aNeg ? '\\' + settings.aNeg : '') + '\\' + settings.aDec + '\\d]' + '.*?(\\d|\\' + settings.aDec + '\\d)');
        settings.skipLastAutoStrip = new RegExp('(\\d\\' + settings.aDec + '?)[^\\' + settings.aDec + '\\d]\\D*$');
        var allowed = '-' + settings.aNum + '\\' + settings.aDec;
        settings.allowedAutoStrip = new RegExp('[^' + allowed + ']', 'gi');
        settings.numRegAutoStrip = new RegExp(aNegReg + '(?:\\' + settings.aDec + '?(\\d+\\' + settings.aDec + '\\d+)|(\\d*(?:\\' + settings.aDec + '\\d*)?))');
        return settings;
    }
/**
     * Preparing user defined options for further usage
     * merge them with defaults appropriately
     */
Preparing user defined options for further usage
merge them with defaults appropriately
Preparing user defined options for further usage merge them with defaults appropriately
function autoCode($this, settings) {
        runCallbacks($this, settings);
        var vmax = settings.vMax.toString().split('.'),
            vmin = (!settings.vMin && settings.vMin !== 0) ? [] : settings.vMin.toString().split('.');
        settings.aNeg = settings.vMin < 0 ? '-' : '';
        vmax[0] = vmax[0].replace('-', '');
        vmin[0] = vmin[0].replace('-', '');
        settings.mIntPos = Math.max(vmax[0].length, 1);
        settings.mIntNeg = Math.max(vmin[0].length, 1);
        if (settings.mDec === null) {
            var vmaxLength = 0,
                vminLength = 0;
            if (vmax[1]) {
                vmaxLength = vmax[1].length;
            }
            if (vmin[1]) {
                vminLength = vmin[1].length;
            }
            settings.mDec = Math.max(vmaxLength, vminLength);
            settings.oDec = settings.mDec;
        } else {
            settings.mDec = Number(settings.mDec);
        }
        if (settings.altDec === null && settings.mDec > 0) {
            if (settings.aDec === '.' && settings.aSep !== ',') {
                settings.altDec = ',';
            } else if (settings.aDec === ',' && settings.aSep !== '.') {
                settings.altDec = '.';
            }
        }
        var aNegReg = settings.aNeg ? '([-\\' + settings.aNeg + ']?)' : '(-?)';
        settings.aNegRegAutoStrip = aNegReg;
        settings.skipFirstAutoStrip = new RegExp(aNegReg + '[^-' + (settings.aNeg ? '\\' + settings.aNeg : '') + '\\' + settings.aDec + '\\d]' + '.*?(\\d|\\' + settings.aDec + '\\d)');
        settings.skipLastAutoStrip = new RegExp('(\\d\\' + settings.aDec + '?)[^\\' + settings.aDec + '\\d]\\D*$');
        var allowed = '-' + settings.aNum + '\\' + settings.aDec;
        settings.allowedAutoStrip = new RegExp('[^' + allowed + ']', 'gi');
        settings.numRegAutoStrip = new RegExp(aNegReg + '(?:\\' + settings.aDec + '?(\\d+\\' + settings.aDec + '\\d+)|(\\d*(?:\\' + settings.aDec + '\\d*)?))');
        return settings;
    }
function autoCode ( $this , settings ) { runCallbacks ( $this , settings ) ; var vmax = settings . vMax . toString ( ) . split ( '.' ) , vmin = ( ! settings . vMin && settings . vMin !== 0 ) ? [ ] : settings . vMin . toString ( ) . split ( '.' ) ; settings . aNeg = settings . vMin < 0 ? '-' : '' ; vmax [ 0 ] = vmax [ 0 ] . replace ( '-' , '' ) ; vmin [ 0 ] = vmin [ 0 ] . replace ( '-' , '' ) ; settings . mIntPos = Math . max ( vmax [ 0 ] . length , 1 ) ; settings . mIntNeg = Math . max ( vmin [ 0 ] . length , 1 ) ; if ( settings . mDec === null ) { var vmaxLength = 0 , vminLength = 0 ; if ( vmax [ 1 ] ) { vmaxLength = vmax [ 1 ] . length ; } if ( vmin [ 1 ] ) { vminLength = vmin [ 1 ] . length ; } settings . mDec = Math . max ( vmaxLength , vminLength ) ; settings . oDec = settings . mDec ; } else { settings . mDec = Number ( settings . mDec ) ; } if ( settings . altDec === null && settings . mDec > 0 ) { if ( settings . aDec === '.' && settings . aSep !== ',' ) { settings . altDec = ',' ; } else if ( settings . aDec === ',' && settings . aSep !== '.' ) { settings . altDec = '.' ; } } var aNegReg = settings . aNeg ? '([-\\' + settings . aNeg + ']?)' : '(-?)' ; settings . aNegRegAutoStrip = aNegReg ; settings . skipFirstAutoStrip = new RegExp ( aNegReg + '[^-' + ( settings . aNeg ? '\\' + settings . aNeg : '' ) + '\\' + settings . aDec + '\\d]' + '.*?(\\d|\\' + settings . aDec + '\\d)' ) ; settings . skipLastAutoStrip = new RegExp ( '(\\d\\' + settings . aDec + '?)[^\\' + settings . aDec + '\\d]\\D*$' ) ; var allowed = '-' + settings . aNum + '\\' + settings . aDec ; settings . allowedAutoStrip = new RegExp ( '[^' + allowed + ']' , 'gi' ) ; settings . numRegAutoStrip = new RegExp ( aNegReg + '(?:\\' + settings . aDec + '?(\\d+\\' + settings . aDec + '\\d+)|(\\d*(?:\\' + settings . aDec + '\\d*)?))' ) ; return settings ; }
Preparing user defined options for further usage
 merge them with defaults appropriately
Preparing user defined options for further usage merge them with defaults appropriately
/** set alternative decimal separator key */ /** cache regexps for autoStrip */