code: private boolean expandCompositCharAtNear(char[] dest,int start, int length,
                                         int yehHamzaOption, int seenTailOption, int lamAlefOption){
  
        boolean spaceNotFound = false;
  
  
  
        if (isNormalizedLamAlefChar(dest[start])) {
            spaceNotFound = true;
            return spaceNotFound;
        }
        for (int i = start + length; --i >=start;) {
            char ch = dest[i];
            if (lamAlefOption == 1 && isNormalizedLamAlefChar(ch)) {
                if (i>start &&dest[i-1] == SPACE_CHAR) {
                    dest[i] = LAM_CHAR;
                    dest[--i] = convertNormalizedLamAlef[ch - '\u065C'];
                } else {
                    spaceNotFound = true;
                    return spaceNotFound;
                }
            }else if(seenTailOption == 1 && isSeenTailFamilyChar(ch) == 1){
                if(i>start &&dest[i-1] == SPACE_CHAR){
                    dest[i-1] = tailChar;
                } else{
                    spaceNotFound = true;
                    return spaceNotFound;
                }
            }else if(yehHamzaOption == 1 && isYehHamzaChar(ch)){
  
                 if(i>start &&dest[i-1] == SPACE_CHAR){
                    dest[i] = yehHamzaToYeh[ch - YEH_HAMZAFE_CHAR];
                    dest[i-1] = HAMZAFE_CHAR;
                }else{
                    spaceNotFound = true;
                    return spaceNotFound;
                  }
  
  
            }
        }
        return false;
  
    }
docs: /*
  Name     : expandCompositCharAtNear
  Function : Expands the LamAlef character into Lam + Alef, YehHamza character
  into Yeh + Hamza, SeenFamily character into SeenFamily character
  + Tail, while consuming the space next to the character.