def extract_crypto_meta(value):
 crypto_meta = None
 parts = value.split(';')
 if (len(parts) == 2):
  (value, param) = parts
  crypto_meta_tag = 'swift_meta='
  if param.strip().startswith(crypto_meta_tag):
   param = param.strip()[len(crypto_meta_tag):]
   crypto_meta = load_crypto_meta(param)
 return (value, crypto_meta)

def extract_crypto_meta ( value ) : crypto_meta = None parts = value . split ( ';' ) if ( len ( parts ) == 2 ) : ( value , param ) = parts crypto_meta_tag = 'swift_meta=' if param . strip ( ) . startswith ( crypto_meta_tag ) : param = param . strip ( ) [ len ( crypto_meta_tag ) : ] crypto_meta = load_crypto_meta ( param ) return ( value , crypto_meta )
extract and deserialize any crypto meta from the end of a value .