package diffmatchpatch

type index uint32

const runeSkipStart = 0xd800
const runeSkipEnd = 0xdfff + 1
const runeMax = 0x110000 // next invalid code point

func stringToIndex( string) []index {
	 := []rune()
	 := make([]index, len())
	for ,  := range  {
		if  < runeSkipEnd {
			[] = index()
		} else {
			[] = index() - (runeSkipEnd - runeSkipStart)
		}
	}
	return 
}

func indexesToString( []index) string {
	 := make([]rune, len())
	for ,  := range  {
		if  < runeSkipStart {
			[] = rune()
		} else {
			[] = rune( + (runeSkipEnd - runeSkipStart))
		}
	}
	return string()
}