it is nothing but the principle of comparators..
Many types of level shifters are available.
Open-drain Voltage Translation, Pass-transistor voltage translation, Fully Buffered Voltage Translation and Dual-supply level translators, etc.,
just see image uploaded by you, in the form of op-amp as comparator. yours is of last category.
For further info please see the link and attachment **broken link removed**