General theory of irregular curves