Question d’entretien chez Microsoft

Design and write pseudocode for a backspace function that will work with DBCS characters.

Réponses aux questions d'entretien

Utilisateur anonyme

18 mars 2013

DBCS was a precursor to Unicode that represented some characters as single bytes and some by double bytes based on a high order bit representing the first byte of a double byte character. The trick is to traverse the data backwards until a byte can be found that is unambiguously a single byte character, then traverse forward until one character before the starting point.

Utilisateur anonyme

12 nov. 2014

So can a string contain both? or it can only contain DBCS or asci ?