code: protected static String oldFileNameToViewName(String fileName) throws CouchbaseLiteException {
          if (!fileName.endsWith(kViewIndexPathExtension) || fileName.startsWith("."))
              throw new CouchbaseLiteException(Status.BAD_PARAM);
          String viewName = fileName.substring(0, fileName.indexOf("."));
          return viewName.replaceAll(":", "/");
      }
docs: /////////////////////////////////////////////////////////////////////////